From d538f32f75bb98bfc9c7ba2e2c9a444e0001c54a Mon Sep 17 00:00:00 2001 From: eric-laurello <102970824+eric-laurello@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:04:54 -0500 Subject: [PATCH] overview (#30) --- docs/catalog.json | 2 +- docs/index.html | 24 ++++----- docs/manifest.json | 2 +- models/descriptions/__overview__.md | 77 +++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+), 14 deletions(-) create mode 100644 models/descriptions/__overview__.md diff --git a/docs/catalog.json b/docs/catalog.json index 651259b..cd2eee5 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.2.1", "generated_at": "2023-01-03T14:24:23.758626Z", "invocation_id": "0068e43f-a1ac-460f-8c8c-00cf7bca1677", "env": {}}, "nodes": {"model.cosmos_models.silver__validators": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:13UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 170496.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 459.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__validators"}, "model.cosmos_models.core__fact_governance_votes": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "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": "model.cosmos_models.core__fact_governance_votes"}, "model.cosmos_models.bronze__tx_search": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "TX_SEARCH", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": null}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 12:55UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 599310434304.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8314886.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze__tx_search"}, "model.cosmos_models.core__dim_labels": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_LABELS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "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": "model.cosmos_models.core__dim_labels"}, "model.cosmos_models.bronze__blocks": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": null}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 12:53UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 393789715456.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8316023.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze__blocks"}, "model.cosmos_models.cosmos_share__fact_msgs": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 8, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 9, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 103409307136.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 388795673.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_msgs"}, "model.cosmos_models.streamline__validators_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "VALIDATORS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__validators_history"}, "model.cosmos_models.streamline__blocks_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__blocks_history"}, "model.cosmos_models.core__fact_transactions": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": null}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": null}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": null}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 14:22UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 125235650560.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24014437.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.core__fact_transactions"}, "model.cosmos_models.streamline__transactions_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__transactions_realtime"}, "model.cosmos_models.cosmos_share__fact_validators": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 170496.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 460.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_validators"}, "model.cosmos_models.core__fact_msgs": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 8, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 9, "name": "UNIQUE_KEY", "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": "model.cosmos_models.core__fact_msgs"}, "model.cosmos_models.silver__transactions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:14UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 124125249024.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 26336328.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__transactions"}, "model.cosmos_models.silver__transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSFERS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:51UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1868868096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9187031.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__transfers"}, "model.cosmos_models.silver__blocks": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:19UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1970047488.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8316023.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__blocks"}, "model.cosmos_models.core__fact_transfers": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_TRANSFERS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "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": "model.cosmos_models.core__fact_transfers"}, "model.cosmos_models.cosmos_share__fact_transactions": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": null}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": null}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": null}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": null}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 14, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 124912134144.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24966368.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_transactions"}, "model.cosmos_models.core__fact_blocks": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_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": "model.cosmos_models.core__fact_blocks"}, "model.cosmos_models.silver__governance_submit_proposal": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:14UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 40.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_submit_proposal"}, "model.cosmos_models.core__dim_tokens": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_TOKENS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ALIAS": {"type": "TEXT", "index": 8, "name": "ALIAS", "comment": null}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": null}, "RAW_METADATA": {"type": "ARRAY", "index": 10, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "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": "model.cosmos_models.core__dim_tokens"}, "model.cosmos_models.silver__governance_proposal_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:52UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 17920.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 131.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_proposal_deposits"}, "model.cosmos_models.core__fact_governance_submit_proposal": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "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": "model.cosmos_models.core__fact_governance_submit_proposal"}, "model.cosmos_models.core__dim_vote_options": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_VOTE_OPTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VOTE_OPTION": {"type": "NUMBER", "index": 1, "name": "VOTE_OPTION", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 2, "name": "DESCRIPTION", "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": "model.cosmos_models.core__dim_vote_options"}, "model.cosmos_models.streamline__blocks": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__blocks"}, "model.cosmos_models.bronze_api__get_validator_metadata": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "GET_VALIDATOR_METADATA", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 102400.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 459.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze_api__get_validator_metadata"}, "model.cosmos_models.silver__governance_votes": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 14:11UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 83298816.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1443492.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_votes"}, "model.cosmos_models.cosmos_share__fact_msg_attributes": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 8, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 9, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 62731408384.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 779766515.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_msg_attributes"}, "model.cosmos_models.streamline__complete_blocks": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 159727104.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8309214.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_blocks"}, "model.cosmos_models.core__fact_governance_proposal_deposits": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "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": "model.cosmos_models.core__fact_governance_proposal_deposits"}, "model.cosmos_models.cosmos_share__fact_transfers": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_TRANSFERS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1016250368.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9189696.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_transfers"}, "model.cosmos_models.streamline__blocks_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__blocks_realtime"}, "model.cosmos_models.streamline__validators_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "VALIDATORS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__validators_realtime"}, "model.cosmos_models.streamline__complete_validators": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 160497664.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8310347.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_validators"}, "model.cosmos_models.silver__msg_attributes": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:14UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 58747440640.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 770493743.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__msg_attributes"}, "model.cosmos_models.cosmos_share__dim_labels": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "DIM_LABELS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 8, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 152064.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1221.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__dim_labels"}, "model.cosmos_models.streamline__transactions_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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": "model.cosmos_models.streamline__transactions_history"}, "model.cosmos_models.cosmos_share__fact_blocks": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "FACT_BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 177053696.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8309214.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__fact_blocks"}, "model.cosmos_models.silver__msgs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 13:14UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 100336163840.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 381434459.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__msgs"}, "model.cosmos_models.streamline__complete_transactions": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(ROUND(block_number, -3))", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 162939904.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8308086.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_transactions"}, "model.cosmos_models.cosmos_share__dim_tokens": {"metadata": {"type": "BASE TABLE", "schema": "COSMOS_SHARE", "name": "DIM_TOKENS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ALIAS": {"type": "TEXT", "index": 8, "name": "ALIAS", "comment": null}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": null}, "RAW_METADATA": {"type": "ARRAY", "index": 10, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 07:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 45568.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 152.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.cosmos_share__dim_tokens"}, "model.cosmos_models.core__fact_msg_attributes": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 8, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 9, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "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": "model.cosmos_models.core__fact_msg_attributes"}, "model.cosmos_models.core__fact_validators": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "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": "model.cosmos_models.core__fact_validators"}}, "sources": {"source.cosmos_models.bronze_streamline.tx_search": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "TX_SEARCH", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 403056575389.0, "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.cosmos_models.bronze_streamline.tx_search"}, "source.cosmos_models.bronze_streamline.blocks": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "BLOCKS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 254954343762.0, "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.cosmos_models.bronze_streamline.blocks"}, "source.cosmos_models.bronze_streamline.validators": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "VALIDATORS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 117396566646.0, "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.cosmos_models.bronze_streamline.validators"}, "source.cosmos_models.osmo.asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "ASSET_METADATA", "database": "OSMOSIS", "comment": null, "owner": "DBT_CLOUD_OSMOSIS"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "In this table, always Osmosis. Used to join to cross-chain tables. This column will deprecate in all tables except core.fact_blocks soon. Please modify your queries to join to the blocks table to use this field."}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}, "ALIAS": {"type": "TEXT", "index": 8, "name": "ALIAS", "comment": "A secondary address for the token, where available"}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": "Divide the amount by POW(10, decimal) to get the amount used in the transaction. This value can be NULL, as decimals are hand curated from an outside source and not found on-chain."}, "RAW_METADATA": {"type": "ARRAY", "index": 10, "name": "RAW_METADATA", "comment": "Additional details about the validator or token in json format."}, "_UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "_UNIQUE_KEY", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-01-03 03:01UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 45568.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 151.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.osmo.asset_metadata"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.2", "generated_at": "2023-02-10T16:54:58.287937Z", "invocation_id": "15b66dc7-f651-4fc8-adf3-0e7a21cf8864", "env": {}}, "nodes": {"test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_DEPOSITOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593"}, "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d"}, "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_DECIMAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484"}, "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_LABEL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792"}, "model.cosmos_models.streamline__blocks_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__blocks_history"}, "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_CHAIN_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35"}, "model.cosmos_models.streamline__blocks_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__blocks_realtime"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c"}, "model.cosmos_models.bronze__tx_search": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "TX_SEARCH", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": null}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 638621260800.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:06UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8815843.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze__tx_search"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_NUM_GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4"}, "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "FACT_TRANSACTIONS_FEE_DENOM", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": null}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": null}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": null}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f"}, "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_PROJECT_NAME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35"}, "model.cosmos_models.core__fact_msgs": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_MSGS", "database": "COSMOS_DEV", "comment": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": "Short for \"message index,\" the position in which messages occur in a transaction."}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": "A string containing information about the type of message occurring."}, "MSG": {"type": "OBJECT", "index": 8, "name": "MSG", "comment": "The flattened underlying json from the messages or events within the transactions"}, "UNIQUE_KEY": {"type": "TEXT", "index": 9, "name": "UNIQUE_KEY", "comment": "The unique key for 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": "model.cosmos_models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_SELF_DELEGATION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_CORE", "name": "FACT_TRANSACTIONS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54"}, "model.cosmos_models.streamline__transactions_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__transactions_history"}, "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2"}, "model.cosmos_models.silver__msgs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MSGS", "database": "COSMOS_DEV", "comment": "Records of all messages associated to transactions that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)"}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": "Short for \"message index,\" the position in which messages occur in a transaction."}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": "A string containing information about the type of message occurring."}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": "The flattened underlying json from the messages or events within the transactions"}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 108842001408.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 419750836.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__msgs"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9"}, "model.cosmos_models.core__fact_msg_attributes": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "MSG_GROUP": {"type": "TEXT", "index": 5, "name": "MSG_GROUP", "comment": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "MSG_INDEX": {"type": "NUMBER", "index": 6, "name": "MSG_INDEX", "comment": "Short for \"message index,\" the position in which messages occur in a transaction."}, "MSG_TYPE": {"type": "TEXT", "index": 7, "name": "MSG_TYPE", "comment": "A string containing information about the type of message occurring."}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 8, "name": "ATTRIBUTE_INDEX", "comment": "The position in which attributes occur within a message"}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 9, "name": "ATTRIBUTE_KEY", "comment": "The key from the key-value pair from the message attribute"}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_VALUE", "comment": "The value from the key-value pair from the message attribute"}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "comment": "The unique key for 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": "model.cosmos_models.core__fact_msg_attributes"}, "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3"}, "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_PROPOSER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0"}, "model.cosmos_models.core__fact_blocks": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_BLOCKS", "database": "COSMOS_DEV", "comment": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": "The name and version of the blockchain."}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "The number of transactions that occurred during a block."}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": "The address of the validator that proposed the block."}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": "The root hash of the new validator set."}}, "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.cosmos_models.core__fact_blocks"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79"}, "model.cosmos_models.silver__validators": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": "The Cosmos address of the user / entity that operates the validator."}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": "The number of tokens staked to the validator."}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": "The number of ATOM tokens that the operator currently has staked with their own validator."}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": "The number of wallets that stake their ATOM tokens with the validator."}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": "The commission rate that the validator is currently charging."}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator"}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": "The number of governance proposals the validator has voted on during its lifetime."}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": "Additional details about the validator or token in json format."}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": "The unique key of the table"}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 173568.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 469.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_VOTE_OPTIONS_DESCRIPTION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "MSG_ATTRIBUTES_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac"}, "model.cosmos_models.streamline__validators_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "VALIDATORS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__validators_realtime"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_VALIDATOR_HASH", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79"}, "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a"}, "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_ACCOUNT_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557"}, "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_GAS_USED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_VOTE_OPTIONS_VOTE_OPTION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732"}, "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_PROPOSER_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_GAS_USED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"_UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_VOTER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8"}, "model.cosmos_models.core__dim_labels": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_LABELS", "database": "COSMOS_DEV", "comment": "Contains all Flipside sourced labels for the Cosmos blockchain.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "CREATOR": {"type": "TEXT", "index": 2, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "ADDRESS": {"type": "TEXT", "index": 3, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}}, "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.cosmos_models.core__dim_labels"}, "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb"}, "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_LABEL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "MSGS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_CREATOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_DELEGATOR_SHARES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "MSGS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_MSG_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1"}, "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_CHAIN_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b"}, "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_VOTER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd"}, "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_TRANSFER_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a"}, "model.cosmos_models.silver__transfers": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSFERS", "database": "COSMOS_DEV", "comment": "Records of all transfers on the Cosmos Hub, including IBC transfers as on- and off-ramps to Cosmos and wallet to wallet transfers", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub."}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": "The wallet address of the individual sent tokens in the transfer."}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": "The amount that was used in the transaction message."}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": "The currency that was used in the transaction message."}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": "The wallet address of the individual received tokens in the transfer."}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1947613696.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9839220.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__transfers"}, "model.cosmos_models.core__dim_tokens": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_TOKENS", "database": "COSMOS_DEV", "comment": "Contains token metadata for assets on the Cosmos blockchain. This table was sourced from an API and may not contain every token.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}, "ALIAS": {"type": "TEXT", "index": 8, "name": "ALIAS", "comment": "A secondary address for the token, where available"}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": "Divide amount by decimal to get the actual amount of currency being transferred."}, "RAW_METADATA": {"type": "ARRAY", "index": 10, "name": "RAW_METADATA", "comment": "Additional details about the validator or token in json format."}, "UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "UNIQUE_KEY", "comment": "The unique key of 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": "model.cosmos_models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_DEPOSITOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a"}, "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215"}, "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "FACT_TRANSACTIONS_FEE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": null}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": null}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": null}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c"}, "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_TX_LOG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2"}, "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_RAW_METADATA", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_ACCOUNT_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d"}, "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07"}, "model.cosmos_models.core__fact_governance_proposal_deposits": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on. The columns blockchain, chain_id, and tx_status will be deprecating soon.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": "The amount that was used in the transaction message."}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": "The currency that was used in the transaction message."}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": "Divide amount by decimal to get the actual amount of currency being transferred."}}, "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.cosmos_models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5"}, "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_CODE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e"}, "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_RECEIVER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_SENDER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba"}, "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da"}, "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366"}, "model.cosmos_models.bronze_api__get_validator_metadata": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_API", "name": "GET_VALIDATOR_METADATA", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 104448.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:06UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 469.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze_api__get_validator_metadata"}, "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_CREATOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650"}, "model.cosmos_models.silver__msg_attributes": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": "Records of all messages associated to transactions that have occurred on the Cosmos Hub, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": ""}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)"}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": "Short for \"message index,\" the position in which messages occur in a transaction."}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": "A string containing information about the type of message occurring."}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": ""}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": ""}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": ""}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 64553939968.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 857879190.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_TX_COUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6"}, "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1"}, "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_LOG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "VALIDATORS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_NUM_DELEGATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f"}, "model.cosmos_models.silver__governance_submit_proposal": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": ""}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": "The address of the validator that submitted the proposal."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": "The type of proposal that was submitted."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8704.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 47.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_submit_proposal"}, "model.cosmos_models.silver__governance_votes": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": "Records of all votes on proposals.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": "Address of the delegator that voted on the proposal."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": "How the delegator voted on the proposal."}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 170401280.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1596169.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_RAW_METADATA", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2"}, "model.cosmos_models.streamline__complete_blocks": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "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"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 176311808.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8817013.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a"}, "model.cosmos_models.bronze__blocks": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": null}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 3, "name": "BLOCK_ID", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(_inserted_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 417820269568.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:06UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8817013.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.bronze__blocks"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TRANSACTIONS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_CHAIN_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232"}, "model.cosmos_models.streamline__validators_history": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "VALIDATORS_HISTORY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__validators_history"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_SENDER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_ATTRIBUTE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e"}, "model.cosmos_models.streamline__blocks": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_LABEL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d"}, "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec"}, "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_TRANSFER_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_DECIMAL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362"}, "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSGS_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "MSG": {"type": "OBJECT", "index": 9, "name": "MSG", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b"}, "model.cosmos_models.core__fact_validators": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_VALIDATORS", "database": "COSMOS_DEV", "comment": "A table that contains labels for and additional information about Cosmos Hub validators", "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": "The Cosmos address of the user / entity that operates the validator."}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": "The number of tokens staked to the validator."}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": "The number of ATOM tokens that the operator currently has staked with their own validator."}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": "The number of wallets that stake their ATOM tokens with the validator."}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": "The commission rate that the validator is currently charging."}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator"}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": "The number of governance proposals the validator has voted on during its lifetime."}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": "Additional details about the validator or token in json format."}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": "The unique key of 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": "model.cosmos_models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_CODESPACE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605"}, "model.cosmos_models.core__fact_governance_submit_proposal": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL", "database": "COSMOS_DEV", "comment": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": "The address of the validator that submitted the proposal."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": "The type of proposal that was submitted."}}, "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.cosmos_models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_MSG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866"}, "model.cosmos_models.streamline__complete_validators": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_VALIDATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "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"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 177185280.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8818414.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_VALIDATOR_HASH", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b"}, "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_TX_CODE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "VALIDATORS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_LABEL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd"}, "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_VOTE_OPTION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc"}, "model.cosmos_models.silver__blocks": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "BLOCKS", "database": "COSMOS_DEV", "comment": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": "In this table, always Cosmos. Used to join to cross-chain tables."}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": "The name and version of the blockchain."}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "The number of transactions that occurred during a block."}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": "The address of the validator that proposed the block."}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": "The root hash of the new validator set."}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2142887936.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8817013.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1"}, "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_TX_LOG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_GAS_WANTED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_MSG_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_RANK", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0"}, "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_DELEGATOR_SHARES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278"}, "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_NUM_DELEGATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_VOTE_OPTION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_NUM_DELEGATORS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_DEPOSITOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449"}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf"}, "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_PROJECT_NAME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_CREATOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "GOVERNANCE_VOTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_ID": {"type": "TEXT", "index": 1, "name": "TX_ID", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 2, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 3, "name": "VOTER", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 4, "name": "VOTE_OPTION", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_AMOUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_SELF_DELEGATION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_PROPOSER_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_ID": {"type": "TEXT", "index": 1, "name": "TX_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0"}, "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_SENDER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_ACCOUNT_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_RAW_METADATA", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_MSG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_PROJECT_NAME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_RECEIVER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e"}, "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_CORE", "name": "FACT_TRANSACTIONS_TX_FROM", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": null}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": null}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": null}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_TX_CODE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSFERS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "TRANSACTIONS_GAS_WANTED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_PROJECT_NAME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_DELEGATOR_SHARES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860"}, "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_NUM_GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69"}, "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "VALIDATORS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9"}, "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_TX_COUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TRANSFERS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"UNIQUE_KEY": {"type": "TEXT", "index": 1, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a"}, "model.cosmos_models.core__fact_governance_votes": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": "Records of all votes on proposals.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": "Address of the delegator that voted on the proposal."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": "How the delegator voted on the proposal."}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "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.cosmos_models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737"}, "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_TRANSFER_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"TX_ID": {"type": "TEXT", "index": 1, "name": "TX_ID", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_RANK", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170"}, "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_ATTRIBUTE_VALUE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60"}, "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_RANK", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790"}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9"}, "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSACTIONS_GAS_WANTED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": null}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": null}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": null}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": null}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5"}, "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_RECEIVER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "MSG_ATTRIBUTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_CURRENCY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_ALIAS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_PROJECT_NAME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717"}, "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": {"metadata": {"type": "BASE TABLE", "schema": "SEQUENCE_GAPS_SILVER", "name": "BLOCKS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"PREV_BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "PREV_BLOCK_ID", "comment": null}, "BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "BLOCK_ID", "comment": null}, "GAP": {"type": "NUMBER", "index": 3, "name": "GAP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_VOTE_OPTION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f"}, "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "BLOCKS_VALIDATOR_HASH", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 4, "name": "CHAIN_ID", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "PROPOSER_ADDRESS": {"type": "TEXT", "index": 6, "name": "PROPOSER_ADDRESS", "comment": null}, "VALIDATOR_HASH": {"type": "TEXT", "index": 7, "name": "VALIDATOR_HASH", "comment": null}, "HEADER": {"type": "VARIANT", "index": 8, "name": "HEADER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "_UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_NUM_GOVERNANCE_VOTES", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc"}, "model.cosmos_models.silver__governance_proposal_deposits": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS", "database": "COSMOS_DEV", "comment": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": ""}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote."}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": "Numeric ID that corresponds to the proposal."}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": "The amount that was used in the transaction message."}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": "The currency that was used in the transaction message."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 23040.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 150.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_SELF_DELEGATION", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_BLOCKCHAIN", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_SET_SILVER", "name": "VALIDATORS_LABEL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"VALUE_FIELD": {"type": "TEXT", "index": 1, "name": "VALUE_FIELD", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_PROPOSER_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_UNIQUE_KEY", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930"}, "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_VOTES_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "VOTER": {"type": "TEXT", "index": 5, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "NUMBER", "index": 7, "name": "VOTE_OPTION", "comment": null}, "VOTE_WEIGHT": {"type": "FLOAT", "index": 8, "name": "VOTE_WEIGHT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_MSG_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c"}, "model.cosmos_models.core__fact_transfers": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "FACT_TRANSFERS", "database": "COSMOS_DEV", "comment": "Records of all transfers on Cosmos", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub."}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": "The wallet address of the individual sent tokens in the transfer."}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": "The amount that was used in the transaction message."}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": "The currency that was used in the transaction message."}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": "The wallet address of the individual received tokens in the transfer."}, "UNIQUE_KEY": {"type": "TEXT", "index": 10, "name": "UNIQUE_KEY", "comment": "The unique key for 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": "model.cosmos_models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23"}, "model.cosmos_models.core__dim_vote_options": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_VOTE_OPTIONS", "database": "COSMOS_DEV", "comment": "Dimensional table with the vote options on Cosmos and what they correspond to.", "owner": "INTERNAL_DEV"}, "columns": {"VOTE_OPTION": {"type": "NUMBER", "index": 1, "name": "VOTE_OPTION", "comment": "How the delegator voted on the proposal."}, "DESCRIPTION": {"type": "TEXT", "index": 2, "name": "DESCRIPTION", "comment": "This describes the vote option the user selected"}}, "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.cosmos_models.core__dim_vote_options"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "TRANSFER_TYPE": {"type": "TEXT", "index": 5, "name": "TRANSFER_TYPE", "comment": null}, "SENDER": {"type": "TEXT", "index": 6, "name": "SENDER", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "RECEIVER": {"type": "TEXT", "index": 9, "name": "RECEIVER", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 10, "name": "MSG_INDEX", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_MSG_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc"}, "model.cosmos_models.streamline__complete_transactions": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "COMPLETE_TRANSACTIONS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "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"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 179576832.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8815843.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.streamline__complete_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_TX_COUNT", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSGS_MSG_SUB_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_LABELS_CREATOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_TX_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_BLOCKS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_RATE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_LABEL_SUBTYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSG_ATTRIBUTES_ATTRIBUTE_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_MSG_INDEX", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "MSG_ATTRIBUTES_MSG_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "MSG_GROUP": {"type": "NUMBER", "index": 5, "name": "MSG_GROUP", "comment": null}, "MSG_SUB_GROUP": {"type": "NUMBER", "index": 6, "name": "MSG_SUB_GROUP", "comment": null}, "MSG_INDEX": {"type": "NUMBER", "index": 7, "name": "MSG_INDEX", "comment": null}, "MSG_TYPE": {"type": "TEXT", "index": 8, "name": "MSG_TYPE", "comment": null}, "ATTRIBUTE_INDEX": {"type": "NUMBER", "index": 9, "name": "ATTRIBUTE_INDEX", "comment": null}, "ATTRIBUTE_KEY": {"type": "TEXT", "index": 10, "name": "ATTRIBUTE_KEY", "comment": null}, "ATTRIBUTE_VALUE": {"type": "TEXT", "index": 11, "name": "ATTRIBUTE_VALUE", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "VALIDATORS_ADDRESS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "MSG_ATTRIBUTES_MSG_SUB_GROUP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb"}, "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_RATE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "DIM_TOKENS_CREATOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_PROPOSAL_DEPOSITS_BLOCK_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "DEPOSITOR": {"type": "TEXT", "index": 5, "name": "DEPOSITOR", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 7, "name": "AMOUNT", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSFERS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8"}, "model.cosmos_models.core__fact_transactions": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_TRANSACTIONS", "database": "COSMOS_DEV", "comment": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "TX_FROM": {"type": "TEXT", "index": 4, "name": "TX_FROM", "comment": "The wallet address of the individual who initiated the transaction"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 5, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "CODESPACE": {"type": "VARIANT", "index": 6, "name": "CODESPACE", "comment": "Namespace for the code."}, "FEE": {"type": "TEXT", "index": 7, "name": "FEE", "comment": "The fee is paid by the initiator of the transaction. Fee = gas * gas price."}, "FEE_DENOM": {"type": "TEXT", "index": 8, "name": "FEE_DENOM", "comment": "The denominator of the transaction fee."}, "GAS_USED": {"type": "NUMBER", "index": 9, "name": "GAS_USED", "comment": "The amount of gas consumed by the transaction."}, "GAS_WANTED": {"type": "NUMBER", "index": 10, "name": "GAS_WANTED", "comment": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated."}, "TX_CODE": {"type": "NUMBER", "index": 11, "name": "TX_CODE", "comment": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures."}, "TX_LOG": {"type": "TEXT", "index": 12, "name": "TX_LOG", "comment": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction."}, "MSGS": {"type": "VARIANT", "index": 13, "name": "MSGS", "comment": "The underlying json from the messages or events within the transactions"}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "UNIQUE_KEY": {"type": "TEXT", "index": 15, "name": "UNIQUE_KEY", "comment": "The unique key for the table."}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 134692623360.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:06UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 25647165.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.core__fact_transactions"}, "model.cosmos_models.silver__transactions": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TRANSACTIONS", "database": "COSMOS_DEV", "comment": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": "The block height the block was recorded at."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block began."}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "CODESPACE": {"type": "VARIANT", "index": 4, "name": "CODESPACE", "comment": "Namespace for the code."}, "GAS_USED": {"type": "NUMBER", "index": 5, "name": "GAS_USED", "comment": "The amount of gas consumed by the transaction."}, "GAS_WANTED": {"type": "NUMBER", "index": 6, "name": "GAS_WANTED", "comment": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated."}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 7, "name": "TX_SUCCEEDED", "comment": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "TX_CODE": {"type": "NUMBER", "index": 8, "name": "TX_CODE", "comment": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures."}, "MSGS": {"type": "VARIANT", "index": 9, "name": "MSGS", "comment": "The underlying json from the messages or events within the transactions"}, "TX_LOG": {"type": "TEXT", "index": 10, "name": "TX_LOG", "comment": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": "The date and time at which the block or transaction was inserted in the bronze tables."}, "UNIQUE_KEY": {"type": "TEXT", "index": 12, "name": "UNIQUE_KEY", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 133101685248.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 27964474.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.silver__transactions"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_ID": {"type": "NUMBER", "index": 1, "name": "BLOCK_ID", "comment": null}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": null}, "TX_ID": {"type": "TEXT", "index": 3, "name": "TX_ID", "comment": null}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 4, "name": "TX_SUCCEEDED", "comment": null}, "PROPOSER": {"type": "TEXT", "index": 5, "name": "PROPOSER", "comment": null}, "PROPOSAL_ID": {"type": "NUMBER", "index": 6, "name": "PROPOSAL_ID", "comment": null}, "PROPOSAL_TYPE": {"type": "TEXT", "index": 7, "name": "PROPOSAL_TYPE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "BLOCKS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_VOTES_VOTER", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_MSGS", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "TRANSFERS_BLOCK_TIMESTAMP", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_VOTES_TX_SUCCEEDED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_MSGS_MSG", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_ID", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "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": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5"}, "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "VALIDATORS_LABEL", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": null}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": null}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": null}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": null}, "ACCOUNT_ADDRESS": {"type": "TEXT", "index": 8, "name": "ACCOUNT_ADDRESS", "comment": null}, "DELEGATOR_SHARES": {"type": "NUMBER", "index": 9, "name": "DELEGATOR_SHARES", "comment": null}, "SELF_DELEGATION": {"type": "NUMBER", "index": 10, "name": "SELF_DELEGATION", "comment": null}, "NUM_DELEGATORS": {"type": "NUMBER", "index": 11, "name": "NUM_DELEGATORS", "comment": null}, "RATE": {"type": "NUMBER", "index": 12, "name": "RATE", "comment": null}, "RANK": {"type": "NUMBER", "index": 13, "name": "RANK", "comment": null}, "NUM_GOVERNANCE_VOTES": {"type": "NUMBER", "index": 14, "name": "NUM_GOVERNANCE_VOTES", "comment": null}, "RAW_METADATA": {"type": "VARIANT", "index": 15, "name": "RAW_METADATA", "comment": null}, "UNIQUE_KEY": {"type": "TEXT", "index": 16, "name": "UNIQUE_KEY", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 4096.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:08UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_PROPOSAL_DEPOSITS_DEPOSITOR", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_TRANSACTIONS_GAS_USED", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_VALIDATORS_RATE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_TO_EXIST_CORE", "name": "FACT_GOVERNANCE_SUBMIT_PROPOSAL_PROPOSAL_TYPE", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"COLUMN_NAME": {"type": "TEXT", "index": 1, "name": "COLUMN_NAME", "comment": null}, "MATCHING_COLUMN_INDEX": {"type": "NUMBER", "index": 2, "name": "MATCHING_COLUMN_INDEX", "comment": null}, "COLUMN_INDEX_MATCHES": {"type": "BOOLEAN", "index": 3, "name": "COLUMN_INDEX_MATCHES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 06:07UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0.0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e"}, "model.cosmos_models.streamline__transactions_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "TRANSACTIONS_REALTIME", "database": "COSMOS_DEV", "comment": null, "owner": "INTERNAL_DEV"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "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.cosmos_models.streamline__transactions_realtime"}}, "sources": {"source.cosmos_models.bronze_streamline.blocks": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "BLOCKS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 270963635339.0, "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.cosmos_models.bronze_streamline.blocks"}, "source.cosmos_models.bronze_streamline.tx_search": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "TX_SEARCH", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 427162313452.0, "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.cosmos_models.bronze_streamline.tx_search"}, "source.cosmos_models.bronze_streamline.validators": {"metadata": {"type": "EXTERNAL TABLE", "schema": "COSMOS", "name": "VALIDATORS", "database": "STREAMLINE", "comment": null, "owner": "AWS_LAMBDA_COSMOS_API"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_BLOCK_ID": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_BLOCK_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "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": 124746961071.0, "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.cosmos_models.bronze_streamline.validators"}, "source.cosmos_models.osmo.asset_metadata": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "ASSET_METADATA", "database": "OSMOSIS", "comment": null, "owner": "DBT_CLOUD_OSMOSIS"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "In this table, always Osmosis. Used to join to cross-chain tables. This column will deprecate in all tables except core.fact_blocks soon. Please modify your queries to join to the blocks table to use this field."}, "ADDRESS": {"type": "TEXT", "index": 2, "name": "ADDRESS", "comment": "Address unique to an individual wallet, validator, or token."}, "CREATOR": {"type": "TEXT", "index": 3, "name": "CREATOR", "comment": "Name of the label creator - for now, this will always be \"Flipside.\""}, "LABEL_TYPE": {"type": "TEXT", "index": 4, "name": "LABEL_TYPE", "comment": "A broad category that describes what a label is representing."}, "LABEL_SUBTYPE": {"type": "TEXT", "index": 5, "name": "LABEL_SUBTYPE", "comment": "Adds more detail to the label type."}, "LABEL": {"type": "TEXT", "index": 6, "name": "LABEL", "comment": "The label or name of the address."}, "PROJECT_NAME": {"type": "TEXT", "index": 7, "name": "PROJECT_NAME", "comment": "The name of the project the label belongs to."}, "ALIAS": {"type": "TEXT", "index": 8, "name": "ALIAS", "comment": "A secondary address for the token, where available"}, "DECIMAL": {"type": "NUMBER", "index": 9, "name": "DECIMAL", "comment": "Divide the amount by POW(10, decimal) to get the amount used in the transaction. This value can be NULL, as decimals are hand curated from an outside source and not found on-chain."}, "RAW_METADATA": {"type": "ARRAY", "index": 10, "name": "RAW_METADATA", "comment": "Additional details about the validator or token in json format."}, "_UNIQUE_KEY": {"type": "TEXT", "index": 11, "name": "_UNIQUE_KEY", "comment": ""}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 46592.0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2023-02-10 03:10UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 149.0, "include": true, "description": "An approximate count of rows in this 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.cosmos_models.osmo.asset_metadata"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 56291a2..65749e4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index 9a03260..54705ca 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v6.json", "dbt_version": "1.2.1", "generated_at": "2023-01-03T14:23:39.616016Z", "invocation_id": "0068e43f-a1ac-460f-8c8c-00cf7bca1677", "env": {}, "project_id": "5762bdc9c55ac0eb27f12b74b59d79e2", "user_id": "813f8ae0-c962-4d36-8a58-1fe8c8fb6a0b", "send_anonymous_usage_stats": true, "adapter_type": "snowflake"}, "nodes": {"model.cosmos_models.bronze_api__get_validator_metadata": {"raw_sql": "{{ config(\r\n materialized = 'table'\r\n) }}\r\n\r\nWITH call AS (\r\n\r\n SELECT\r\n ethereum.streamline.udf_api(\r\n 'GET',\r\n 'https://api.cosmoscan.net/validators',{},{}\r\n ) AS resp,\r\n SYSDATE() AS _inserted_timestamp\r\n)\r\nSELECT\r\n i.value :operator_address :: STRING as address, \r\n i.value AS DATA,\r\n _inserted_timestamp\r\nFROM\r\n call,\r\n LATERAL FLATTEN(\r\n input => resp :data\r\n ) i", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze_api", "fqn": ["cosmos_models", "bronze_api", "bronze_api__get_validator_metadata"], "unique_id": "model.cosmos_models.bronze_api__get_validator_metadata", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "bronze_api\\bronze_api__get_validator_metadata.sql", "original_file_path": "models\\bronze_api\\bronze_api__get_validator_metadata.sql", "name": "bronze_api__get_validator_metadata", "alias": "get_validator_metadata", "checksum": {"name": "sha256", "checksum": "e43b9f90e9c2e1bc9afe73b73223c5ee9a0e8898aaaeac85931aade8213530b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\bronze_api\\bronze_api__get_validator_metadata.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "table"}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nWITH call AS (\n\n SELECT\n ethereum.streamline.udf_api(\n 'GET',\n 'https://api.cosmoscan.net/validators',{},{}\n ) AS resp,\n SYSDATE() AS _inserted_timestamp\n)\nSELECT\n i.value :operator_address :: STRING as address, \n i.value AS DATA,\n _inserted_timestamp\nFROM\n call,\n LATERAL FLATTEN(\n input => resp :data\n ) i", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze_api.get_validator_metadata"}, "model.cosmos_models.cosmos_share__dim_labels": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n 'cosmos' AS blockchain,\r\n creator,\r\n address,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name, \r\n concat_ws(\r\n '-',\r\n blockchain,\r\n address,\r\n creator\r\n ) AS unique_key\r\nFROM\r\n {{ ref('core__dim_labels') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__dim_labels"], "unique_id": "model.cosmos_models.cosmos_share__dim_labels", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__dim_labels.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__dim_labels.sql", "name": "cosmos_share__dim_labels", "alias": "dim_labels", "checksum": {"name": "sha256", "checksum": "b5d9e8046ee4bb1f3e9a7d57013db3299f258651b8aa09049641ac954351407a"}, "tags": ["share"], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__dim_labels.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n 'cosmos' AS blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name, \n concat_ws(\n '-',\n blockchain,\n address,\n creator\n ) AS unique_key\nFROM\n COSMOS_DEV.core.dim_labels", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.dim_labels"}, "model.cosmos_models.cosmos_share__dim_tokens": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n blockchain,\r\n address,\r\n creator,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name,\r\n alias,\r\n DECIMAL,\r\n raw_metadata,\r\n unique_key\r\nFROM\r\n {{ ref('core__dim_tokens') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__dim_tokens"], "unique_id": "model.cosmos_models.cosmos_share__dim_tokens", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__dim_tokens.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__dim_tokens.sql", "name": "cosmos_share__dim_tokens", "alias": "dim_tokens", "checksum": {"name": "sha256", "checksum": "09e4dd07fbda34fdcb287dde17998c40bf4ac15b657933f942e03deac8609fff"}, "tags": ["share"], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__dim_tokens.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n alias,\n DECIMAL,\n raw_metadata,\n unique_key\nFROM\n COSMOS_DEV.core.dim_tokens", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.dim_tokens"}, "model.cosmos_models.cosmos_share__fact_blocks": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"block_id\",\r\n cluster_by = ['block_timestamp::date'],\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n blockchain,\r\n chain_id,\r\n tx_count,\r\n proposer_address,\r\n validator_hash\r\nFROM\r\n {{ ref('core__fact_blocks') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::date"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_blocks"], "unique_id": "model.cosmos_models.cosmos_share__fact_blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_blocks.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_blocks.sql", "name": "cosmos_share__fact_blocks", "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "bd62b6b6ed88888bc1d28edb3548e13df084727b1754b7aa7858b26158886a2d"}, "tags": ["share"], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "block_id", "cluster_by": ["block_timestamp::date"], "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n blockchain,\n chain_id,\n tx_count,\n proposer_address,\n validator_hash\nFROM\n COSMOS_DEV.core.fact_blocks", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_blocks"}, "model.cosmos_models.cosmos_share__fact_msgs": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n cluster_by = ['block_timestamp::date'],\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_group,\r\n msg_index,\r\n msg_type,\r\n msg,\r\n unique_key\r\nFROM\r\n {{ ref('core__fact_msgs') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::date"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_msgs"], "unique_id": "model.cosmos_models.cosmos_share__fact_msgs", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_msgs.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_msgs.sql", "name": "cosmos_share__fact_msgs", "alias": "fact_msgs", "checksum": {"name": "sha256", "checksum": "da4ab8fec03fba81bf9a8c06f990e31f8cd689a077451b46cddb0fa9f8ed06a4"}, "tags": ["share"], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_msgs.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "cluster_by": ["block_timestamp::date"], "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_index,\n msg_type,\n msg,\n unique_key\nFROM\n COSMOS_DEV.core.fact_msgs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_msgs"}, "model.cosmos_models.cosmos_share__fact_msg_attributes": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n cluster_by = ['block_timestamp::date'],\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_group,\r\n msg_index,\r\n msg_type,\r\n attribute_index,\r\n attribute_key,\r\n attribute_value,\r\n unique_key\r\nFROM\r\n {{ ref('core__fact_msg_attributes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::date"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_msg_attributes"], "unique_id": "model.cosmos_models.cosmos_share__fact_msg_attributes", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_msg_attributes.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_msg_attributes.sql", "name": "cosmos_share__fact_msg_attributes", "alias": "fact_msg_attributes", "checksum": {"name": "sha256", "checksum": "dcd21775c7ecde77b485d18b0c36a8b18d46160d4584ab90ec21caa2576d6abd"}, "tags": ["share"], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_msg_attributes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "cluster_by": ["block_timestamp::date"], "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_index,\n msg_type,\n attribute_index,\n attribute_key,\n attribute_value,\n unique_key\nFROM\n COSMOS_DEV.core.fact_msg_attributes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_msg_attributes"}, "model.cosmos_models.cosmos_share__fact_transactions": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n cluster_by = ['block_timestamp::date'],\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_from,\r\n tx_succeeded,\r\n codespace,\r\n fee,\r\n fee_denom,\r\n gas_used,\r\n gas_wanted,\r\n tx_code,\r\n tx_log,\r\n msgs,\r\n _partition_by_block_id,\r\n unique_key\r\nFROM\r\n {{ ref('core__fact_transactions') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::date"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_transactions"], "unique_id": "model.cosmos_models.cosmos_share__fact_transactions", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_transactions.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_transactions.sql", "name": "cosmos_share__fact_transactions", "alias": "fact_transactions", "checksum": {"name": "sha256", "checksum": "49d6f2fde7087c2594f6a7d07b9a1e6d199cccba22c5b24e65f3b4a8f61e1a81"}, "tags": ["share"], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "cluster_by": ["block_timestamp::date"], "tags": ["share"]}, "created_at": 1672332549.2615778, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_from,\n tx_succeeded,\n codespace,\n fee,\n fee_denom,\n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _partition_by_block_id,\n unique_key\nFROM\n COSMOS_DEV.core.fact_transactions", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_transactions"}, "model.cosmos_models.cosmos_share__fact_transfers": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n cluster_by = ['block_timestamp::date'],\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n transfer_type,\r\n sender,\r\n amount,\r\n currency,\r\n receiver,\r\n unique_key\r\nFROM\r\n {{ ref('core__fact_transfers') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::date"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_transfers"], "unique_id": "model.cosmos_models.cosmos_share__fact_transfers", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_transfers.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_transfers.sql", "name": "cosmos_share__fact_transfers", "alias": "fact_transfers", "checksum": {"name": "sha256", "checksum": "bd52b15039d687de13248da622ef849b01d23f81b63022e3c6e4b81c255de90e"}, "tags": ["share"], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "cluster_by": ["block_timestamp::date"], "tags": ["share"]}, "created_at": 1672332549.2772155, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n unique_key\nFROM\n COSMOS_DEV.core.fact_transfers", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_transfers"}, "model.cosmos_models.cosmos_share__fact_validators": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n tags = ['share']\r\n) }}\r\n\r\nSELECT\r\n address,\r\n blockchain,\r\n creator,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name,\r\n account_address,\r\n delegator_shares,\r\n self_delegation,\r\n num_delegators,\r\n rate,\r\n RANK,\r\n num_governance_votes,\r\n raw_metadata,\r\n unique_key\r\nFROM\r\n {{ ref('core__fact_validators') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["share"], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_share", "fqn": ["cosmos_models", "cosmos_share", "cosmos_share__fact_validators"], "unique_id": "model.cosmos_models.cosmos_share__fact_validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "cosmos_share\\cosmos_share__fact_validators.sql", "original_file_path": "models\\cosmos_share\\cosmos_share__fact_validators.sql", "name": "cosmos_share__fact_validators", "alias": "fact_validators", "checksum": {"name": "sha256", "checksum": "b703ae4f0e4142fd8ce6c4756ae43dbcb25e0d3fc9056706cab9a8521507dda6"}, "tags": ["share"], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\cosmos_share\\cosmos_share__fact_validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "tags": ["share"]}, "created_at": 1672332549.2772155, "compiled_sql": "\n\nSELECT\n address,\n blockchain,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n account_address,\n delegator_shares,\n self_delegation,\n num_delegators,\n rate,\n RANK,\n num_governance_votes,\n raw_metadata,\n unique_key\nFROM\n COSMOS_DEV.core.fact_validators", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.cosmos_share.fact_validators"}, "model.cosmos_models.core__dim_labels": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n blockchain,\r\n creator,\r\n address,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name\r\nFROM\r\n {{ ref('core__dim_tokens') }}\r\nUNION\r\nSELECT\r\n blockchain,\r\n creator,\r\n address,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name\r\nFROM\r\n {{ ref('core__fact_validators') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_labels"], "unique_id": "model.cosmos_models.core__dim_labels", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__dim_labels.sql", "original_file_path": "models\\gold\\core__dim_labels.sql", "name": "core__dim_labels", "alias": "dim_labels", "checksum": {"name": "sha256", "checksum": "17deab21c12f63948ffabe3a2ff1798603de5e1387a1496704bdaff912821d2c"}, "tags": [], "refs": [["core__dim_tokens"], ["core__fact_validators"]], "sources": [], "metrics": [], "description": "Contains all Flipside sourced labels for the Cosmos blockchain.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__dim_labels.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.4504426, "compiled_sql": "\n\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n COSMOS_DEV.core.dim_tokens\nUNION\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n COSMOS_DEV.core.fact_validators", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_labels"}, "model.cosmos_models.core__dim_tokens": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n 'cosmos' AS blockchain,\r\n address,\r\n creator,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name,\r\n alias,\r\n DECIMAL,\r\n raw_metadata, \r\n concat_ws(\r\n '-',\r\n address,\r\n creator,\r\n blockchain\r\n ) AS unique_key\r\nFROM\r\n {{ source(\r\n 'osmo',\r\n 'asset_metadata'\r\n ) }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.cosmos_models.osmo.asset_metadata"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_tokens"], "unique_id": "model.cosmos_models.core__dim_tokens", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__dim_tokens.sql", "original_file_path": "models\\gold\\core__dim_tokens.sql", "name": "core__dim_tokens", "alias": "dim_tokens", "checksum": {"name": "sha256", "checksum": "8d03d9fc35d0b8574791eb4e243909e6737532eb221c1b5544429b796e4a3a94"}, "tags": [], "refs": [], "sources": [["osmo", "asset_metadata"]], "metrics": [], "description": "Contains token metadata for assets on the Cosmos blockchain. This table was sourced from an API and may not contain every token.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ALIAS": {"name": "ALIAS", "description": "A secondary address for the token, where available", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DECIMAL": {"name": "DECIMAL", "description": "Divide amount by decimal to get the actual amount of currency being transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__dim_tokens.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.5157144, "compiled_sql": "\n\nSELECT\n 'cosmos' AS blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n alias,\n DECIMAL,\n raw_metadata, \n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n osmosis.silver.asset_metadata", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_tokens"}, "model.cosmos_models.core__fact_blocks": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT \r\n block_id, \r\n block_timestamp, \r\n blockchain,\r\n chain_id, \r\n tx_count, \r\n proposer_address, \r\n validator_hash\r\nFROM \r\n {{ ref('silver__blocks') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_blocks"], "unique_id": "model.cosmos_models.core__fact_blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_blocks.sql", "original_file_path": "models\\gold\\core__fact_blocks.sql", "name": "core__fact_blocks", "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "3d63149c40586f50b3cc09b51cded3708a5704da56732c423f05be789b587368"}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "The name and version of the blockchain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of transactions that occurred during a block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER_ADDRESS": {"name": "PROPOSER_ADDRESS", "description": "The address of the validator that proposed the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VALIDATOR_HASH": {"name": "VALIDATOR_HASH", "description": "The root hash of the new validator set.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_blocks.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.5632658, "compiled_sql": "\n\nSELECT \n block_id, \n block_timestamp, \n blockchain,\n chain_id, \n tx_count, \n proposer_address, \n validator_hash\nFROM \n COSMOS_DEV.silver.blocks", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_blocks"}, "model.cosmos_models.core__fact_msgs": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n CONCAT(\r\n msg_group,\r\n ':',\r\n msg_sub_group\r\n ) AS msg_group,\r\n msg_index,\r\n msg_type,\r\n msg,\r\n unique_key\r\n\r\nFROM\r\n {{ ref('silver__msgs') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_msgs"], "unique_id": "model.cosmos_models.core__fact_msgs", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_msgs.sql", "original_file_path": "models\\gold\\core__fact_msgs.sql", "name": "core__fact_msgs", "alias": "fact_msgs", "checksum": {"name": "sha256", "checksum": "040ba1c98e2352d8de1be8c152fd7f5987643dc99093eaf51bb68e1acb16ff4f"}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The flattened underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_msgs.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.5797722, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n msg,\n unique_key\n\nFROM\n COSMOS_DEV.silver.msgs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_msgs"}, "model.cosmos_models.core__fact_msg_attributes": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n CONCAT(\r\n msg_group,\r\n ':',\r\n msg_sub_group\r\n ) AS msg_group,\r\n msg_index,\r\n msg_type,\r\n attribute_index,\r\n attribute_key,\r\n attribute_value,\r\n unique_key\r\nFROM\r\n {{ ref('silver__msg_attributes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_msg_attributes"], "unique_id": "model.cosmos_models.core__fact_msg_attributes", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_msg_attributes.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.sql", "name": "core__fact_msg_attributes", "alias": "fact_msg_attributes", "checksum": {"name": "sha256", "checksum": "19e935cfacb6dcd2a28acaf54803cc9bab4d7880b5f2a2ba6420151828e31637"}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_INDEX": {"name": "ATTRIBUTE_INDEX", "description": "The position in which attributes occur within a message", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_KEY": {"name": "ATTRIBUTE_KEY", "description": "The key from the key-value pair from the message attribute", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_VALUE": {"name": "ATTRIBUTE_VALUE", "description": "The value from the key-value pair from the message attribute", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_msg_attributes.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n attribute_index,\n attribute_key,\n attribute_value,\n unique_key\nFROM\n COSMOS_DEV.silver.msg_attributes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_msg_attributes"}, "model.cosmos_models.core__fact_transfers": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n transfer_type,\r\n sender,\r\n amount,\r\n currency,\r\n receiver,\r\n unique_key\r\nFROM\r\n {{ ref('silver__transfers') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_transfers"], "unique_id": "model.cosmos_models.core__fact_transfers", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_transfers.sql", "original_file_path": "models\\gold\\core__fact_transfers.sql", "name": "core__fact_transfers", "alias": "fact_transfers", "checksum": {"name": "sha256", "checksum": "33eb0c874d9a54a83dee8652ec0a2be56729d46de593f46ea13fedf9294f1f30"}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "Records of all transfers on Cosmos", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TRANSFER_TYPE": {"name": "TRANSFER_TYPE", "description": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The wallet address of the individual sent tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The wallet address of the individual received tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_transfers.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.73707, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n unique_key\nFROM\n COSMOS_DEV.silver.transfers", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_transfers"}, "model.cosmos_models.core__fact_validators": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n address,\r\n blockchain,\r\n creator,\r\n label_type,\r\n label_subtype,\r\n label,\r\n project_name,\r\n account_address,\r\n delegator_shares,\r\n self_delegation,\r\n num_delegators,\r\n rate,\r\n RANK,\r\n num_governance_votes,\r\n raw_metadata,\r\n unique_key\r\nFROM\r\n {{ ref('silver__validators') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_validators"], "unique_id": "model.cosmos_models.core__fact_validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_validators.sql", "original_file_path": "models\\gold\\core__fact_validators.sql", "name": "core__fact_validators", "alias": "fact_validators", "checksum": {"name": "sha256", "checksum": "8c74afb21dafcd787d28202fd977860537d6ea90fc25049926b2bd6c6911d96d"}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "A table that contains labels for and additional information about Cosmos Hub validators", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACCOUNT_ADDRESS": {"name": "ACCOUNT_ADDRESS", "description": "The Cosmos address of the user / entity that operates the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DELEGATOR_SHARES": {"name": "DELEGATOR_SHARES", "description": "The number of tokens staked to the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SELF_DELEGATION": {"name": "SELF_DELEGATION", "description": "The number of ATOM tokens that the operator currently has staked with their own validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_DELEGATORS": {"name": "NUM_DELEGATORS", "description": "The number of wallets that stake their ATOM tokens with the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RATE": {"name": "RATE", "description": "The commission rate that the validator is currently charging.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RANK": {"name": "RANK", "description": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_GOVERNANCE_VOTES": {"name": "NUM_GOVERNANCE_VOTES", "description": "The number of governance proposals the validator has voted on during its lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_validators.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672332549.801509, "compiled_sql": "\n\nSELECT\n address,\n blockchain,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n account_address,\n delegator_shares,\n self_delegation,\n num_delegators,\n rate,\n RANK,\n num_governance_votes,\n raw_metadata,\n unique_key\nFROM\n COSMOS_DEV.silver.validators", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_validators"}, "model.cosmos_models.silver__validators": {"raw_sql": "{{ config(\r\n materialized = 'table'\r\n) }}\r\n\r\nSELECT\r\n address,\r\n 'cosmos' AS blockchain,\r\n 'flipside' AS creator,\r\n 'operator' AS label_type,\r\n 'validator' AS label_subtype,\r\n DATA :title :: STRING AS label,\r\n DATA :cons_address :: STRING AS project_name,\r\n DATA :acc_address :: STRING AS account_address,\r\n DATA :power :: NUMBER AS delegator_shares,\r\n DATA :self_stake :: NUMBER AS self_delegation,\r\n DATA :delegators :: NUMBER AS num_delegators,\r\n DATA :fee :: NUMBER AS rate,\r\n RANK() over (\r\n PARTITION BY address\r\n ORDER BY\r\n DATA :self_stake DESC\r\n ) AS RANK,\r\n DATA :governance_votes :: NUMBER AS num_governance_votes,\r\n DATA AS raw_metadata,\r\n concat_ws(\r\n '-',\r\n address,\r\n creator,\r\n blockchain\r\n ) AS unique_key\r\nFROM\r\n {{ ref('bronze_api__get_validator_metadata') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.bronze_api__get_validator_metadata"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__validators"], "unique_id": "model.cosmos_models.silver__validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__validators.sql", "original_file_path": "models\\silver\\silver__validators.sql", "name": "silver__validators", "alias": "validators", "checksum": {"name": "sha256", "checksum": "fba407cd2eaee64f345a119c5e4fb5136d9bf7d271c8a9d725f355a3b58b3a34"}, "tags": [], "refs": [["bronze_api__get_validator_metadata"]], "sources": [], "metrics": [], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACCOUNT_ADDRESS": {"name": "ACCOUNT_ADDRESS", "description": "The Cosmos address of the user / entity that operates the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DELEGATOR_SHARES": {"name": "DELEGATOR_SHARES", "description": "The number of tokens staked to the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SELF_DELEGATION": {"name": "SELF_DELEGATION", "description": "The number of ATOM tokens that the operator currently has staked with their own validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_DELEGATORS": {"name": "NUM_DELEGATORS", "description": "The number of wallets that stake their ATOM tokens with the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RATE": {"name": "RATE", "description": "The commission rate that the validator is currently charging.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RANK": {"name": "RANK", "description": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_GOVERNANCE_VOTES": {"name": "NUM_GOVERNANCE_VOTES", "description": "The number of governance proposals the validator has voted on during its lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__validators.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "table"}, "created_at": 1672332550.286319, "compiled_sql": "\n\nSELECT\n address,\n 'cosmos' AS blockchain,\n 'flipside' AS creator,\n 'operator' AS label_type,\n 'validator' AS label_subtype,\n DATA :title :: STRING AS label,\n DATA :cons_address :: STRING AS project_name,\n DATA :acc_address :: STRING AS account_address,\n DATA :power :: NUMBER AS delegator_shares,\n DATA :self_stake :: NUMBER AS self_delegation,\n DATA :delegators :: NUMBER AS num_delegators,\n DATA :fee :: NUMBER AS rate,\n RANK() over (\n PARTITION BY address\n ORDER BY\n DATA :self_stake DESC\n ) AS RANK,\n DATA :governance_votes :: NUMBER AS num_governance_votes,\n DATA AS raw_metadata,\n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n COSMOS_DEV.bronze_api.get_validator_metadata", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.validators"}, "model.cosmos_models.streamline__blocks": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n tags = ['streamline_view']\r\n) }}\r\n\r\n\r\n{% if execute %}\r\n{% set height = run_query('SELECT streamline.udf_get_cosmos_chainhead()') %}\r\n{% set block_height = height.columns[0].values()[0] %}\r\n{% else %}\r\n{% set block_height = 13000000 %}\r\n{% endif %}\r\n\r\nSELECT\r\n height as block_number\r\nFROM\r\n TABLE(streamline.udtf_get_base_table({{block_height}}))\r\nWHERE\r\n height >= 5200791 -- Highest block the archive has available", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.run_query"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks"], "unique_id": "model.cosmos_models.streamline__blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__blocks.sql", "original_file_path": "models\\streamline\\streamline__blocks.sql", "name": "streamline__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "1b75f84391e5cd237958f9d0aa637ba836d602eaf1d000778aba1320d59776db"}, "tags": ["streamline_view"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "tags": ["streamline_view"]}, "created_at": 1672332549.324173, "compiled_sql": "\n\n\n\n\n\n\n\nSELECT\n height as block_number\nFROM\n TABLE(streamline.udtf_get_base_table(13518164))\nWHERE\n height >= 5200791 -- Highest block the archive has available", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks"}, "model.cosmos_models.streamline__blocks_history": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\n{% for item in range(13) %}\r\n (\r\n\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__blocks\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n EXCEPT\r\n SELECT\r\n id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__complete_blocks\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n ORDER BY\r\n block_number\r\n ) {% if not loop.last %}\r\n UNION ALL\r\n {% endif %}\r\n{% endfor %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks_history"], "unique_id": "model.cosmos_models.streamline__blocks_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__blocks_history.sql", "original_file_path": "models\\streamline\\streamline__blocks_history.sql", "name": "streamline__blocks_history", "alias": "blocks_history", "checksum": {"name": "sha256", "checksum": "dc2b3706695aa66e8ec350787079ebee80e3db17c22110f7d2f75017acae9483"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__blocks_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.324173, "compiled_sql": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks_history"}, "model.cosmos_models.streamline__blocks_realtime": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\nSELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__blocks\") }}\r\nWHERE\r\n block_number > 13000000\r\n AND block_number IS NOT NULL\r\nEXCEPT\r\nSELECT\r\n id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__complete_blocks\") }}\r\nWHERE\r\n block_number > 13000000", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks_realtime"], "unique_id": "model.cosmos_models.streamline__blocks_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__blocks_realtime.sql", "original_file_path": "models\\streamline\\streamline__blocks_realtime.sql", "name": "streamline__blocks_realtime", "alias": "blocks_realtime", "checksum": {"name": "sha256", "checksum": "aece9de8357b93e5cf19925b3cf973e8d739b8e897cea461a0738b4ce53590ed"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__blocks_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.3560035, "compiled_sql": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_blocks\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks_realtime"}, "model.cosmos_models.streamline__complete_blocks": {"raw_sql": "{{ config (\r\n materialized = \"incremental\",\r\n unique_key = \"id\",\r\n cluster_by = \"ROUND(block_number, -3)\",\r\n merge_update_columns = [\"id\"]\r\n) }}\r\n\r\nWITH meta AS (\r\n\r\n SELECT\r\n last_modified,\r\n file_name\r\n FROM\r\n TABLE(\r\n information_schema.external_table_files(\r\n table_name => '{{ source( \"bronze_streamline\", \"blocks\") }}'\r\n )\r\n ) A\r\n)\r\n\r\n{% if is_incremental() %},\r\nmax_date AS (\r\n SELECT\r\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\r\n FROM\r\n {{ this }})\r\n {% endif %}\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number,\r\n last_modified AS _inserted_timestamp\r\n FROM\r\n {{ source(\r\n \"bronze_streamline\",\r\n \"blocks\"\r\n ) }}\r\n JOIN meta b\r\n ON b.file_name = metadata$filename\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n b.last_modified > (\r\n SELECT\r\n max_INSERTED_TIMESTAMP\r\n FROM\r\n max_date\r\n )\r\n{% endif %}\r\n\r\nqualify(ROW_NUMBER() over (PARTITION BY id\r\nORDER BY\r\n _inserted_timestamp DESC)) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_blocks"], "unique_id": "model.cosmos_models.streamline__complete_blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__complete_blocks.sql", "original_file_path": "models\\streamline\\streamline__complete_blocks.sql", "name": "streamline__complete_blocks", "alias": "complete_blocks", "checksum": {"name": "sha256", "checksum": "f7ae182cda1e3e95282ea9186f60bd22f3c19d3372b397aef132838d1481c8ab"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__complete_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672332549.3560035, "compiled_sql": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.blocks'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_blocks)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.blocks\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_blocks"}, "model.cosmos_models.streamline__complete_transactions": {"raw_sql": "{{ config (\r\n materialized = \"incremental\",\r\n unique_key = \"id\",\r\n cluster_by = \"ROUND(block_number, -3)\",\r\n merge_update_columns = [\"id\"]\r\n) }}\r\n\r\nWITH meta AS (\r\n\r\n SELECT\r\n last_modified,\r\n file_name\r\n FROM\r\n TABLE(\r\n information_schema.external_table_files(\r\n table_name => '{{ source( \"bronze_streamline\", \"tx_search\") }}'\r\n )\r\n ) A\r\n)\r\n\r\n{% if is_incremental() %},\r\nmax_date AS (\r\n SELECT\r\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\r\n FROM\r\n {{ this }})\r\n {% endif %}\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number,\r\n last_modified AS _inserted_timestamp\r\n FROM\r\n {{ source(\r\n \"bronze_streamline\",\r\n \"tx_search\"\r\n ) }}\r\n JOIN meta b\r\n ON b.file_name = metadata$filename\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n b.last_modified > (\r\n SELECT\r\n max_INSERTED_TIMESTAMP\r\n FROM\r\n max_date\r\n )\r\n{% endif %}\r\n\r\nqualify(ROW_NUMBER() over (PARTITION BY id\r\nORDER BY\r\n _inserted_timestamp DESC)) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_transactions"], "unique_id": "model.cosmos_models.streamline__complete_transactions", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__complete_transactions.sql", "original_file_path": "models\\streamline\\streamline__complete_transactions.sql", "name": "streamline__complete_transactions", "alias": "complete_transactions", "checksum": {"name": "sha256", "checksum": "3ca3522758ea8caad34e1d95d9a8779d44264d4e140f11db227913a6b42c2649"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "tx_search"], ["bronze_streamline", "tx_search"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__complete_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672332549.3560035, "compiled_sql": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.tx_search'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_transactions)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.tx_search\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_transactions"}, "model.cosmos_models.streamline__complete_validators": {"raw_sql": "{{ config (\r\n materialized = \"incremental\",\r\n unique_key = \"id\",\r\n cluster_by = \"ROUND(block_number, -3)\",\r\n merge_update_columns = [\"id\"]\r\n) }}\r\n\r\nWITH meta AS (\r\n\r\n SELECT\r\n last_modified,\r\n file_name\r\n FROM\r\n TABLE(\r\n information_schema.external_table_files(\r\n table_name => '{{ source( \"bronze_streamline\", \"validators\") }}'\r\n )\r\n ) A\r\n)\r\n\r\n{% if is_incremental() %},\r\nmax_date AS (\r\n SELECT\r\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\r\n FROM\r\n {{ this }})\r\n {% endif %}\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number,\r\n last_modified AS _inserted_timestamp\r\n FROM\r\n {{ source(\r\n \"bronze_streamline\",\r\n \"validators\"\r\n ) }}\r\n JOIN meta b\r\n ON b.file_name = metadata$filename\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n b.last_modified > (\r\n SELECT\r\n max_INSERTED_TIMESTAMP\r\n FROM\r\n max_date\r\n )\r\n{% endif %}\r\n\r\nqualify(ROW_NUMBER() over (PARTITION BY id\r\nORDER BY\r\n _inserted_timestamp DESC)) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.validators", "source.cosmos_models.bronze_streamline.validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_validators"], "unique_id": "model.cosmos_models.streamline__complete_validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__complete_validators.sql", "original_file_path": "models\\streamline\\streamline__complete_validators.sql", "name": "streamline__complete_validators", "alias": "complete_validators", "checksum": {"name": "sha256", "checksum": "512af66b873f289bd1c270bcf9c59f9963f2dd3b138ba1e42354dc96fad124b9"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "validators"], ["bronze_streamline", "validators"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__complete_validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1672332549.3717332, "compiled_sql": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.validators'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_validators)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.validators\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_validators"}, "model.cosmos_models.streamline__transactions_history": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\n{% for item in range(13) %}\r\n (\r\n\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__blocks\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n EXCEPT\r\n SELECT\r\n id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__complete_transactions\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n ORDER BY\r\n block_number\r\n ) {% if not loop.last %}\r\n UNION ALL\r\n {% endif %}\r\n{% endfor %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__transactions_history"], "unique_id": "model.cosmos_models.streamline__transactions_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__transactions_history.sql", "original_file_path": "models\\streamline\\streamline__transactions_history.sql", "name": "streamline__transactions_history", "alias": "transactions_history", "checksum": {"name": "sha256", "checksum": "5be8e05790b5e252d46c500a3d1345e224671d42b54805530fa5d1e2372e0aff"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__transactions_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.3717332, "compiled_sql": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.transactions_history"}, "model.cosmos_models.streamline__transactions_realtime": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\nSELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__blocks\") }}\r\nWHERE\r\n block_number > 13000000\r\n AND block_number IS NOT NULL\r\nEXCEPT\r\nSELECT\r\n id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__complete_transactions\") }}\r\nWHERE\r\n block_number > 13000000", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__transactions_realtime"], "unique_id": "model.cosmos_models.streamline__transactions_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__transactions_realtime.sql", "original_file_path": "models\\streamline\\streamline__transactions_realtime.sql", "name": "streamline__transactions_realtime", "alias": "transactions_realtime", "checksum": {"name": "sha256", "checksum": "0eade8a9c6717a257507ca9f77aed2444a7cd0ab512c994dc1b79e5625abdbf5"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__transactions_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.387352, "compiled_sql": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_transactions\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.transactions_realtime"}, "model.cosmos_models.streamline__validators_history": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_validators(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\n{% for item in range(13) %}\r\n (\r\n\r\n SELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__blocks\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n EXCEPT\r\n SELECT\r\n id,\r\n block_number\r\n FROM\r\n {{ ref(\"streamline__complete_validators\") }}\r\n WHERE\r\n block_number BETWEEN {{ item * 1000000 + 1 }}\r\n AND {{(\r\n item + 1\r\n ) * 1000000 }}\r\n ORDER BY\r\n block_number\r\n ) {% if not loop.last %}\r\n UNION ALL\r\n {% endif %}\r\n{% endfor %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__validators_history"], "unique_id": "model.cosmos_models.streamline__validators_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__validators_history.sql", "original_file_path": "models\\streamline\\streamline__validators_history.sql", "name": "streamline__validators_history", "alias": "validators_history", "checksum": {"name": "sha256", "checksum": "6bd5a2444164cdbe0f217343d9d57c2399bdf06043998979b048dbb122c3466d"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__validators_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.387352, "compiled_sql": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.validators_history"}, "model.cosmos_models.streamline__validators_realtime": {"raw_sql": "{{ config (\r\n materialized = \"view\",\r\n post_hook = if_data_call_function(\r\n func = \"{{this.schema}}.udf_get_cosmos_validators(object_construct('sql_source', '{{this.identifier}}'))\",\r\n target = \"{{this.schema}}.{{this.identifier}}\"\r\n )\r\n) }}\r\n\r\nSELECT\r\n {{ dbt_utils.surrogate_key(\r\n ['block_number']\r\n ) }} AS id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__blocks\") }}\r\nWHERE\r\n block_number > 13000000\r\n AND block_number IS NOT NULL\r\nEXCEPT\r\nSELECT\r\n id,\r\n block_number\r\nFROM\r\n {{ ref(\"streamline__complete_validators\") }}\r\nWHERE\r\n block_number > 13000000", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__validators_realtime"], "unique_id": "model.cosmos_models.streamline__validators_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "streamline\\streamline__validators_realtime.sql", "original_file_path": "models\\streamline\\streamline__validators_realtime.sql", "name": "streamline__validators_realtime", "alias": "validators_realtime", "checksum": {"name": "sha256", "checksum": "6bffec593ba86b67c3c7c643eb3c37418270050bbeb93cfc3975180b6f6563d1"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\streamline\\streamline__validators_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1672332549.4029777, "compiled_sql": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_validators\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.validators_realtime"}, "operation.cosmos_models.cosmos_models-on-run-start-0": {"raw_sql": "{{ create_sps() }}", "compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.cosmos_models.create_sps"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_models-on-run-start-0", "fqn": ["cosmos_models", "hooks", "cosmos_models-on-run-start-0"], "unique_id": "operation.cosmos_models.cosmos_models-on-run-start-0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "hooks\\cosmos_models-on-run-start-0.sql", "original_file_path": ".\\dbt_project.yml", "name": "cosmos_models-on-run-start-0", "alias": "", "checksum": {"name": "sha256", "checksum": "94aa15dd420a0ee19fb2af35ab2fd9ce74cf029c9f857c1b44000c0ac9485425"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\.\\dbt_project.yml\\hooks\\cosmos_models-on-run-start-0.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns"}, "created_at": 1672332549.4185982, "compiled_sql": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 0}, "operation.cosmos_models.cosmos_models-on-run-start-1": {"raw_sql": "{{ create_udfs() }}", "compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.cosmos_models.create_udfs"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_models-on-run-start-1", "fqn": ["cosmos_models", "hooks", "cosmos_models-on-run-start-1"], "unique_id": "operation.cosmos_models.cosmos_models-on-run-start-1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "hooks\\cosmos_models-on-run-start-1.sql", "original_file_path": ".\\dbt_project.yml", "name": "cosmos_models-on-run-start-1", "alias": "", "checksum": {"name": "sha256", "checksum": "94aa15dd420a0ee19fb2af35ab2fd9ce74cf029c9f857c1b44000c0ac9485425"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\.\\dbt_project.yml\\hooks\\cosmos_models-on-run-start-1.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns"}, "created_at": 1672332549.4185982, "compiled_sql": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 1}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS", "alias": "dim_labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2"}, "created_at": 1672332549.4504426, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ADDRESS", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN", "alias": "dim_labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e"}, "created_at": 1672332549.468747, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR", "alias": "dim_labels_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa"}, "created_at": 1672332549.468747, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CREATOR", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE", "alias": "dim_labels_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37"}, "created_at": 1672332549.468747, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE", "alias": "dim_labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97"}, "created_at": 1672332549.468747, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL", "alias": "dim_labels_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332549.468747, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28.sql", "original_file_path": "models\\gold\\core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME", "alias": "dim_labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_labels.yml\\dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28"}, "created_at": 1672332549.4844713, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS", "alias": "dim_tokens_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc"}, "created_at": 1672332549.5313387, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ADDRESS", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN", "alias": "dim_tokens_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d"}, "created_at": 1672332549.5313387, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR", "alias": "dim_tokens_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a"}, "created_at": 1672332549.5313387, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CREATOR", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE", "alias": "dim_tokens_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755"}, "created_at": 1672332549.5313387, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE", "alias": "dim_tokens_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668"}, "created_at": 1672332549.5313387, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL", "alias": "dim_tokens_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332549.5475416, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME", "alias": "dim_tokens_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071"}, "created_at": 1672332549.5475416, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ALIAS", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS", "alias": "dim_tokens_ALIAS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332549.5475416, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ALIAS' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ALIAS", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DECIMAL", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL", "alias": "dim_tokens_DECIMAL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207"}, "created_at": 1672332549.5475416, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('DECIMAL' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DECIMAL", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA", "alias": "dim_tokens_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5"}, "created_at": 1672332549.5475416, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('RAW_METADATA' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RAW_METADATA", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8.sql", "original_file_path": "models\\gold\\core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY", "alias": "dim_tokens_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_tokens.yml\\dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8"}, "created_at": 1672332549.5632658, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID", "alias": "fact_blocks_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295"}, "created_at": 1672332549.5632658, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP", "alias": "fact_blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6"}, "created_at": 1672332549.5632658, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN", "alias": "fact_blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9"}, "created_at": 1672332549.5632658, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID", "alias": "fact_blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6"}, "created_at": 1672332549.5797722, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CHAIN_ID' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CHAIN_ID", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT", "alias": "fact_blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a"}, "created_at": 1672332549.5797722, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_COUNT' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_COUNT", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS", "alias": "fact_blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80"}, "created_at": 1672332549.5797722, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSER_ADDRESS' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f.sql", "original_file_path": "models\\gold\\core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH", "alias": "fact_blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_blocks.yml\\dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f"}, "created_at": 1672332549.5797722, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('VALIDATOR_HASH' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VALIDATOR_HASH", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID", "alias": "fact_msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19"}, "created_at": 1672332549.5954962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP", "alias": "fact_msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190"}, "created_at": 1672332549.5954962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID", "alias": "fact_msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332549.5954962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED", "alias": "fact_msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e"}, "created_at": 1672332549.5954962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP", "alias": "fact_msgs_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910"}, "created_at": 1672332549.5954962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_GROUP' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_GROUP", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX", "alias": "fact_msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c"}, "created_at": 1672332549.6111424, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_INDEX' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE", "alias": "fact_msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6"}, "created_at": 1672332549.6111424, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG", "alias": "fact_msgs_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332549.6111424, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d.sql", "original_file_path": "models\\gold\\core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY", "alias": "fact_msgs_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msgs.yml\\dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d"}, "created_at": 1672332549.6111424, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID", "alias": "fact_msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP", "alias": "fact_msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID", "alias": "fact_msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED", "alias": "fact_msg_attributes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP", "alias": "fact_msg_attributes_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920"}, "created_at": 1672332549.6267579, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_GROUP' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_GROUP", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX", "alias": "fact_msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97"}, "created_at": 1672332549.6423867, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_INDEX' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE", "alias": "fact_msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011"}, "created_at": 1672332549.64649, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSG_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX", "alias": "fact_msg_attributes_ATTRIBUTE_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe"}, "created_at": 1672332549.64649, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_INDEX' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ATTRIBUTE_INDEX", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY", "alias": "fact_msg_attributes_ATTRIBUTE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972"}, "created_at": 1672332549.64649, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_KEY' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ATTRIBUTE_KEY", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_VALUE", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE", "alias": "fact_msg_attributes_ATTRIBUTE_VALUE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1"}, "created_at": 1672332549.64649, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_VALUE' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ATTRIBUTE_VALUE", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77.sql", "original_file_path": "models\\gold\\core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY", "alias": "fact_msg_attributes_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_msg_attributes.yml\\dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77"}, "created_at": 1672332549.6585913, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_06ec7a899413bab6063716744517f718\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID", "alias": "fact_transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_06ec7a899413bab6063716744517f718.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718"}, "created_at": 1672332549.7380693, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP", "alias": "fact_transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56"}, "created_at": 1672332549.7450526, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID", "alias": "fact_transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0"}, "created_at": 1672332549.7509558, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED", "alias": "fact_transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711"}, "created_at": 1672332549.7571962, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE", "alias": "fact_transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f"}, "created_at": 1672332549.7645345, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TRANSFER_TYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TRANSFER_TYPE", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER", "alias": "fact_transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c"}, "created_at": 1672332549.7698812, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('SENDER' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SENDER", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT", "alias": "fact_transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5"}, "created_at": 1672332549.775176, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('AMOUNT' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY", "alias": "fact_transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398"}, "created_at": 1672332549.7823625, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CURRENCY' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER", "alias": "fact_transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef"}, "created_at": 1672332549.7838624, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('RECEIVER' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RECEIVER", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f.sql", "original_file_path": "models\\gold\\core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY", "alias": "fact_transfers_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transfers.yml\\dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f"}, "created_at": 1672332549.7838624, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS", "alias": "fact_validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f"}, "created_at": 1672332549.801509, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ADDRESS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN", "alias": "fact_validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44"}, "created_at": 1672332549.8093936, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR", "alias": "fact_validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5"}, "created_at": 1672332549.8161995, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CREATOR", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE", "alias": "fact_validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb"}, "created_at": 1672332549.8224235, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE", "alias": "fact_validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06"}, "created_at": 1672332549.8239243, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL", "alias": "fact_validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41"}, "created_at": 1672332549.8321195, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME", "alias": "fact_validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204"}, "created_at": 1672332549.8363805, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROJECT_NAME", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS", "alias": "fact_validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd"}, "created_at": 1672332549.8363805, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('ACCOUNT_ADDRESS' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES", "alias": "fact_validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d"}, "created_at": 1672332549.8363805, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('DELEGATOR_SHARES' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DELEGATOR_SHARES", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION", "alias": "fact_validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171"}, "created_at": 1672332549.8468852, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('SELF_DELEGATION' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SELF_DELEGATION", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS", "alias": "fact_validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e"}, "created_at": 1672332549.8468852, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('NUM_DELEGATORS' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_DELEGATORS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RATE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RATE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RATE", "alias": "fact_validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d"}, "created_at": 1672332549.85189, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('RATE' as TEXT) as column_name,\n 11 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RATE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RANK", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RANK"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RANK", "alias": "fact_validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862"}, "created_at": 1672332549.85189, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('RANK' as TEXT) as column_name,\n 12 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RANK", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES", "alias": "fact_validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4"}, "created_at": 1672332549.85189, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('NUM_GOVERNANCE_VOTES' as TEXT) as column_name,\n 13 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA", "alias": "fact_validators_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468"}, "created_at": 1672332549.85189, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('RAW_METADATA' as TEXT) as column_name,\n 14 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RAW_METADATA", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334.sql", "original_file_path": "models\\gold\\core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY", "alias": "fact_validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_validators.yml\\dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334"}, "created_at": 1672332549.85189, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 15 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_ADDRESS.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_ADDRESS", "alias": "validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.286319, "compiled_sql": "\n \n \n\n\n\nselect ADDRESS\nfrom COSMOS_DEV.silver.validators\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR", "alias": "validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7"}, "created_at": 1672332550.2882943, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_BLOCKCHAIN"], "unique_id": "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_BLOCKCHAIN.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_BLOCKCHAIN", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.2923064, "compiled_sql": "\n \n \n\n\n\nselect BLOCKCHAIN\nfrom COSMOS_DEV.silver.validators\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77"}, "created_at": 1672332550.293306, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCKCHAIN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["cosmos"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf"}, "created_at": 1672332550.2973144, "compiled_sql": "\n\nwith all_values as (\n\n select\n BLOCKCHAIN as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('cosmos' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_CREATOR"], "unique_id": "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_CREATOR.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_CREATOR", "alias": "validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_CREATOR.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3089235, "compiled_sql": "\n \n \n\n\n\nselect CREATOR\nfrom COSMOS_DEV.silver.validators\nwhere CREATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CREATOR", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CREATOR", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR", "alias": "validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58"}, "created_at": 1672332550.3103383, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'CREATOR'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CREATOR", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_LABEL_TYPE.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_LABEL_TYPE", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_LABEL_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3154185, "compiled_sql": "\n \n \n\n\n\nselect LABEL_TYPE\nfrom COSMOS_DEV.silver.validators\nwhere LABEL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa"}, "created_at": 1672332550.31642, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["operator"], "column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71"}, "created_at": 1672332550.3204203, "compiled_sql": "\n\nwith all_values as (\n\n select\n LABEL_TYPE as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('operator' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_LABEL_SUBTYPE.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_LABEL_SUBTYPE", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_LABEL_SUBTYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3253427, "compiled_sql": "\n \n \n\n\n\nselect LABEL_SUBTYPE\nfrom COSMOS_DEV.silver.validators\nwhere LABEL_SUBTYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186"}, "created_at": 1672332550.3274095, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL_SUBTYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["validator"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7"}, "created_at": 1672332550.33143, "compiled_sql": "\n\nwith all_values as (\n\n select\n LABEL_SUBTYPE as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('validator' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_LABEL.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_LABEL", "alias": "validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3364189, "compiled_sql": "\n \n \n\n\n\nselect LABEL\nfrom COSMOS_DEV.silver.validators\nwhere LABEL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR", "alias": "validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5"}, "created_at": 1672332550.3374252, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "LABEL", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_PROJECT_NAME"], "unique_id": "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_PROJECT_NAME.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_PROJECT_NAME", "alias": "validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_PROJECT_NAME.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3413415, "compiled_sql": "\n \n \n\n\n\nselect PROJECT_NAME\nfrom COSMOS_DEV.silver.validators\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROJECT_NAME", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR", "alias": "validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063"}, "created_at": 1672332550.343429, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'PROJECT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROJECT_NAME", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_ACCOUNT_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_ACCOUNT_ADDRESS.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_ACCOUNT_ADDRESS", "alias": "validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_ACCOUNT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3474195, "compiled_sql": "\n \n \n\n\n\nselect ACCOUNT_ADDRESS\nfrom COSMOS_DEV.silver.validators\nwhere ACCOUNT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR", "alias": "validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1"}, "created_at": 1672332550.3484242, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'ACCOUNT_ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_DELEGATOR_SHARES"], "unique_id": "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_DELEGATOR_SHARES.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_DELEGATOR_SHARES", "alias": "validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_DELEGATOR_SHARES.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.351431, "compiled_sql": "\n \n \n\n\n\nselect DELEGATOR_SHARES\nfrom COSMOS_DEV.silver.validators\nwhere DELEGATOR_SHARES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DELEGATOR_SHARES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT", "alias": "validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53"}, "created_at": 1672332550.3533792, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'DELEGATOR_SHARES'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DELEGATOR_SHARES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_SELF_DELEGATION"], "unique_id": "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_SELF_DELEGATION.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_SELF_DELEGATION", "alias": "validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_SELF_DELEGATION.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3563428, "compiled_sql": "\n \n \n\n\n\nselect SELF_DELEGATION\nfrom COSMOS_DEV.silver.validators\nwhere SELF_DELEGATION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SELF_DELEGATION", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT", "alias": "validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df"}, "created_at": 1672332550.3583422, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'SELF_DELEGATION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SELF_DELEGATION", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_NUM_DELEGATORS"], "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_NUM_DELEGATORS.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_NUM_DELEGATORS", "alias": "validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_NUM_DELEGATORS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3634243, "compiled_sql": "\n \n \n\n\n\nselect NUM_DELEGATORS\nfrom COSMOS_DEV.silver.validators\nwhere NUM_DELEGATORS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_DELEGATORS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT", "alias": "validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5"}, "created_at": 1672332550.3644307, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'NUM_DELEGATORS'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_DELEGATORS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "RATE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RATE"], "unique_id": "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_RATE.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_RATE", "alias": "validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_RATE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.369341, "compiled_sql": "\n \n \n\n\n\nselect RATE\nfrom COSMOS_DEV.silver.validators\nwhere RATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RATE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RATE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT", "alias": "validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5"}, "created_at": 1672332550.3713408, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'RATE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RATE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "RANK", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RANK"], "unique_id": "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_RANK.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_RANK", "alias": "validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_RANK.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3804245, "compiled_sql": "\n \n \n\n\n\nselect RANK\nfrom COSMOS_DEV.silver.validators\nwhere RANK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RANK", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RANK", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT", "alias": "validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa"}, "created_at": 1672332550.3834305, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'RANK'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RANK", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_NUM_GOVERNANCE_VOTES"], "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_NUM_GOVERNANCE_VOTES.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_NUM_GOVERNANCE_VOTES", "alias": "validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_NUM_GOVERNANCE_VOTES.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3903377, "compiled_sql": "\n \n \n\n\n\nselect NUM_GOVERNANCE_VOTES\nfrom COSMOS_DEV.silver.validators\nwhere NUM_GOVERNANCE_VOTES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT", "alias": "validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9"}, "created_at": 1672332550.392337, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'NUM_GOVERNANCE_VOTES'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RAW_METADATA"], "unique_id": "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_RAW_METADATA.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_RAW_METADATA", "alias": "validators_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_RAW_METADATA.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.397338, "compiled_sql": "\n \n \n\n\n\nselect RAW_METADATA\nfrom COSMOS_DEV.silver.validators\nwhere RAW_METADATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RAW_METADATA", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__validators_UNIQUE_KEY.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "not_null_silver__validators_UNIQUE_KEY", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\not_null_silver__validators_UNIQUE_KEY.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672332550.3993378, "compiled_sql": "\n \n \n\n\n\nselect UNIQUE_KEY\nfrom COSMOS_DEV.silver.validators\nwhere UNIQUE_KEY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2"}, "created_at": 1672332550.4013379, "compiled_sql": "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'UNIQUE_KEY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4.sql", "original_file_path": "models\\silver\\silver__validators.yml", "name": "dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__validators.yml\\dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4"}, "created_at": 1672332550.4063382, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.validators\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__validators"}, "model.cosmos_models.bronze__blocks": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = 'block_id',\r\n cluster_by = ['_inserted_timestamp::date'],\r\n merge_update_columns = [\"block_id\"],\r\n) }}\r\n\r\nWITH meta AS (\r\n\r\n SELECT\r\n registered_on,\r\n last_modified,\r\n LEAST(\r\n last_modified,\r\n registered_on\r\n ) AS _inserted_timestamp,\r\n file_name\r\n FROM\r\n TABLE(\r\n information_schema.external_table_files(\r\n table_name => '{{ source( \"bronze_streamline\", \"blocks\") }}'\r\n )\r\n ) A\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n LEAST(\r\n registered_on,\r\n last_modified\r\n ) >= (\r\n SELECT\r\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\r\n FROM\r\n {{ this }})\r\n )\r\n{% else %}\r\n)\r\n{% endif %}\r\nSELECT\r\n VALUE,\r\n _partition_by_block_id,\r\n block_number AS block_id,\r\n metadata,\r\n DATA,\r\n TO_TIMESTAMP(\r\n m._inserted_timestamp\r\n ) AS _inserted_timestamp\r\nFROM\r\n {{ source(\r\n 'bronze_streamline',\r\n 'blocks'\r\n ) }} \r\n JOIN meta m\r\n ON m.file_name = metadata$filename\r\n\r\nWHERE\r\n DATA: error IS NULL qualify(ROW_NUMBER() over (PARTITION BY block_number\r\nORDER BY\r\n _inserted_timestamp DESC)) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze", "fqn": ["cosmos_models", "bronze", "bronze__blocks"], "unique_id": "model.cosmos_models.bronze__blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "bronze\\bronze__blocks.sql", "original_file_path": "models\\bronze\\bronze__blocks.sql", "name": "bronze__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "befe6ec731a18d1b48948958a54aa0bcc78b3fca784f461d7ccee9015d5c80e5"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\bronze\\bronze__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "block_id", "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"]}, "created_at": 1672417165.544144, "compiled_sql": "\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.blocks'\n )\n ) A\n\n\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.bronze.blocks)\n )\n\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n streamline.COSMOS.blocks \n JOIN meta m\n ON m.file_name = metadata$filename\n\nWHERE\n DATA: error IS NULL qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze.blocks"}, "model.cosmos_models.silver__msgs": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nWITH base_msgs AS (\r\n\r\n SELECT\r\n t.block_id,\r\n t.block_timestamp,\r\n t.tx_id,\r\n t.gas_used,\r\n t.gas_wanted,\r\n t.tx_succeeded,\r\n f.value AS msg,\r\n f.index :: INT AS msg_index,\r\n msg :type :: STRING AS msg_type,\r\n IFF(\r\n TRY_BASE64_DECODE_STRING(\r\n msg :attributes [0] :key :: STRING\r\n ) = 'action',\r\n TRUE,\r\n FALSE\r\n ) AS is_action,\r\n NULLIF(\r\n (conditional_true_event(is_action) over (PARTITION BY tx_id\r\n ORDER BY\r\n msg_index ASC) -1),\r\n -1\r\n ) AS msg_group,\r\n IFF(\r\n TRY_BASE64_DECODE_STRING(\r\n msg :attributes [0] :key :: STRING\r\n ) = 'module',\r\n TRUE,\r\n FALSE\r\n ) AS is_module,\r\n TRY_BASE64_DECODE_STRING(\r\n msg :attributes [0] :key :: STRING\r\n ) AS attribute_key,\r\n TRY_BASE64_DECODE_STRING(\r\n msg :attributes [0] :value :: STRING\r\n ) AS attribute_value,\r\n t._inserted_timestamp\r\n FROM\r\n {{ ref(\r\n 'silver__transactions'\r\n ) }}\r\n t,\r\n LATERAL FLATTEN(input => msgs) f\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n )\r\n{% endif %}\r\n),\r\nexec_actions AS (\r\n SELECT\r\n DISTINCT tx_id,\r\n msg_group\r\n FROM\r\n base_msgs\r\n WHERE\r\n msg_type = 'message'\r\n AND attribute_key = 'action'\r\n AND LOWER(attribute_value) LIKE '%exec%'\r\n),\r\nGROUPING AS (\r\n SELECT\r\n base_msgs.tx_id,\r\n base_msgs.msg_index,\r\n RANK() over(\r\n PARTITION BY base_msgs.tx_id,\r\n base_msgs.msg_group\r\n ORDER BY\r\n base_msgs.msg_index\r\n ) -1 AS msg_sub_group\r\n FROM\r\n base_msgs\r\n INNER JOIN exec_actions e\r\n ON base_msgs.tx_id = e.tx_id\r\n AND base_msgs.msg_group = e.msg_group\r\n WHERE\r\n base_msgs.is_module = 'TRUE'\r\n AND base_msgs.msg_type = 'message'\r\n),\r\nmsgs AS (\r\n SELECT\r\n block_id,\r\n block_timestamp,\r\n A.tx_id,\r\n tx_succeeded,\r\n msg_group,\r\n CASE\r\n WHEN msg_group IS NULL THEN NULL\r\n ELSE COALESCE(\r\n LAST_VALUE(\r\n b.msg_sub_group ignore nulls\r\n ) over(\r\n PARTITION BY A.tx_id,\r\n msg_group\r\n ORDER BY\r\n A.msg_index DESC rows unbounded preceding\r\n ),\r\n 0\r\n )\r\n END AS msg_sub_group,\r\n A.msg_index,\r\n msg_type,\r\n msg,\r\n concat_ws(\r\n '-',\r\n block_id,\r\n A.tx_id,\r\n A.msg_index\r\n ) AS unique_key,\r\n _inserted_timestamp\r\n FROM\r\n base_msgs A\r\n LEFT JOIN GROUPING b\r\n ON A.tx_id = b.tx_id\r\n AND A.msg_index = b.msg_index\r\n)\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_group,\r\n msg_sub_group,\r\n msg_index,\r\n msg_type,\r\n msg :: OBJECT AS msg,\r\n unique_key,\r\n _inserted_timestamp\r\nFROM\r\n msgs", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__msgs"], "unique_id": "model.cosmos_models.silver__msgs", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__msgs.sql", "original_file_path": "models\\silver\\silver__msgs.sql", "name": "silver__msgs", "alias": "msgs", "checksum": {"name": "sha256", "checksum": "7e0b298ac709b3074155ced59185bd2d2c5ef076f2695c70f912d43747faa3f3"}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all messages associated to transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_SUB_GROUP": {"name": "MSG_SUB_GROUP", "description": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The flattened underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__msgs.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672417960.231188, "compiled_sql": "\n\nWITH base_msgs AS (\n\n SELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n t.gas_used,\n t.gas_wanted,\n t.tx_succeeded,\n f.value AS msg,\n f.index :: INT AS msg_index,\n msg :type :: STRING AS msg_type,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'action',\n TRUE,\n FALSE\n ) AS is_action,\n NULLIF(\n (conditional_true_event(is_action) over (PARTITION BY tx_id\n ORDER BY\n msg_index ASC) -1),\n -1\n ) AS msg_group,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'module',\n TRUE,\n FALSE\n ) AS is_module,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :value :: STRING\n ) AS attribute_value,\n t._inserted_timestamp\n FROM\n COSMOS_DEV.silver.transactions\n t,\n LATERAL FLATTEN(input => msgs) f\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.msgs\n )\n\n),\nexec_actions AS (\n SELECT\n DISTINCT tx_id,\n msg_group\n FROM\n base_msgs\n WHERE\n msg_type = 'message'\n AND attribute_key = 'action'\n AND LOWER(attribute_value) LIKE '%exec%'\n),\nGROUPING AS (\n SELECT\n base_msgs.tx_id,\n base_msgs.msg_index,\n RANK() over(\n PARTITION BY base_msgs.tx_id,\n base_msgs.msg_group\n ORDER BY\n base_msgs.msg_index\n ) -1 AS msg_sub_group\n FROM\n base_msgs\n INNER JOIN exec_actions e\n ON base_msgs.tx_id = e.tx_id\n AND base_msgs.msg_group = e.msg_group\n WHERE\n base_msgs.is_module = 'TRUE'\n AND base_msgs.msg_type = 'message'\n),\nmsgs AS (\n SELECT\n block_id,\n block_timestamp,\n A.tx_id,\n tx_succeeded,\n msg_group,\n CASE\n WHEN msg_group IS NULL THEN NULL\n ELSE COALESCE(\n LAST_VALUE(\n b.msg_sub_group ignore nulls\n ) over(\n PARTITION BY A.tx_id,\n msg_group\n ORDER BY\n A.msg_index DESC rows unbounded preceding\n ),\n 0\n )\n END AS msg_sub_group,\n A.msg_index,\n msg_type,\n msg,\n concat_ws(\n '-',\n block_id,\n A.tx_id,\n A.msg_index\n ) AS unique_key,\n _inserted_timestamp\n FROM\n base_msgs A\n LEFT JOIN GROUPING b\n ON A.tx_id = b.tx_id\n AND A.msg_index = b.msg_index\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n msg :: OBJECT AS msg,\n unique_key,\n _inserted_timestamp\nFROM\n msgs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.msgs"}, "model.cosmos_models.silver__msg_attributes": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_group,\r\n msg_sub_group,\r\n msg_index,\r\n msg_type,\r\n b.index AS attribute_index,\r\n TRY_BASE64_DECODE_STRING(\r\n b.value :key :: STRING\r\n ) AS attribute_key,\r\n TRY_BASE64_DECODE_STRING(\r\n b.value :value :: STRING\r\n ) AS attribute_value,\r\n concat_ws(\r\n '-',\r\n block_id,\r\n tx_id,\r\n msg_index,\r\n attribute_index\r\n ) AS unique_key,\r\n _inserted_timestamp\r\nFROM\r\n {{ ref('silver__msgs') }} A,\r\n LATERAL FLATTEN(\r\n input => A.msg,\r\n path => 'attributes'\r\n ) b\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n )\r\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__msg_attributes"], "unique_id": "model.cosmos_models.silver__msg_attributes", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__msg_attributes.sql", "original_file_path": "models\\silver\\silver__msg_attributes.sql", "name": "silver__msg_attributes", "alias": "msg_attributes", "checksum": {"name": "sha256", "checksum": "4c5d9e678de3fb55c110df66aba09abf77bb75dba441a87a11345505ac6b15b1"}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "Records of all messages associated to transactions that have occurred on the Cosmos Hub, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_SUB_GROUP": {"name": "MSG_SUB_GROUP", "description": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The underlying json from the message or event within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__msg_attributes.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672417960.483692, "compiled_sql": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n b.index AS attribute_index,\n TRY_BASE64_DECODE_STRING(\n b.value :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n b.value :value :: STRING\n ) AS attribute_value,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n attribute_index\n ) AS unique_key,\n _inserted_timestamp\nFROM\n COSMOS_DEV.silver.msgs A,\n LATERAL FLATTEN(\n input => A.msg,\n path => 'attributes'\n ) b\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.msg_attributes\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.msg_attributes"}, "model.cosmos_models.silver__transfers": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = 'block_timestamp::DATE',\r\n) }}\r\n\r\nWITH cosmos_txs AS (\r\n\r\n SELECT\r\n DISTINCT tx_id\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_value IN (\r\n '/cosmos.bank.v1beta1.MsgSend',\r\n '/cosmos.bank.v1beta1.MsgMultiSend'\r\n )\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nsender_index AS (\r\n SELECT\r\n tx_id,\r\n MIN(msg_index) AS msg_index\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'tx'\r\n AND attribute_key = 'acc_seq'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\nGROUP BY\r\n tx_id\r\n),\r\nsender AS (\r\n SELECT\r\n m.block_id,\r\n m.tx_id,\r\n s.msg_index,\r\n SPLIT_PART(\r\n attribute_value,\r\n '/',\r\n 0\r\n ) AS sender\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n m\r\n INNER JOIN sender_index s\r\n ON m.tx_id = s.tx_id\r\n AND m.msg_index = s.msg_index\r\n WHERE\r\n msg_type = 'tx'\r\n AND attribute_key = 'acc_seq'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nmsg_index AS (\r\n SELECT\r\n m.block_id,\r\n v.tx_id,\r\n attribute_key,\r\n m.msg_index\r\n FROM\r\n cosmos_txs v\r\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\r\n m\r\n ON v.tx_id = m.tx_id\r\n INNER JOIN sender s\r\n ON v.tx_id = s.tx_id\r\n AND m.block_id = s.block_id\r\n WHERE\r\n msg_type = 'transfer'\r\n AND attribute_key = 'amount'\r\n AND m.msg_index > s.msg_index\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nreceiver AS (\r\n SELECT\r\n m.block_id,\r\n v.tx_id,\r\n m.msg_index,\r\n attribute_value AS receiver\r\n FROM\r\n cosmos_txs v\r\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\r\n m\r\n ON v.tx_id = m.tx_id\r\n INNER JOIN sender s\r\n ON v.tx_id = s.tx_id\r\n AND m.block_id = s.block_id\r\n WHERE\r\n msg_type = 'transfer'\r\n AND attribute_key = 'recipient'\r\n AND m.msg_index > s.msg_index\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\namount AS (\r\n SELECT\r\n m.block_id,\r\n v.tx_id,\r\n m.msg_index,\r\n COALESCE(\r\n SPLIT_PART(\r\n TRIM(\r\n REGEXP_REPLACE(\r\n attribute_value,\r\n '[^[:digit:]]',\r\n ' '\r\n )\r\n ),\r\n ' ',\r\n 0\r\n ),\r\n TRY_PARSE_JSON(attribute_value) :amount\r\n ) AS amount,\r\n COALESCE(\r\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))),\r\n TRY_PARSE_JSON(attribute_value) [1] :denom\r\n ) AS currency\r\n FROM\r\n cosmos_txs v\r\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\r\n m\r\n ON v.tx_id = m.tx_id\r\n INNER JOIN sender s\r\n ON v.tx_id = s.tx_id\r\n AND m.block_id = s.block_id\r\n WHERE\r\n msg_type = 'transfer'\r\n AND attribute_key = 'amount'\r\n AND m.msg_index > s.msg_index\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\ncosmos_txs_final AS (\r\n SELECT\r\n r.block_id,\r\n block_timestamp,\r\n r.tx_id,\r\n tx_succeeded,\r\n 'COSMOS' AS transfer_type,\r\n r.msg_index,\r\n sender,\r\n amount,\r\n currency,\r\n receiver,\r\n _inserted_timestamp,\r\n concat_ws(\r\n '-',\r\n r.block_id,\r\n r.tx_id,\r\n r.msg_index,\r\n currency\r\n ) AS unique_key\r\n FROM\r\n receiver r\r\n LEFT OUTER JOIN amount C\r\n ON r.tx_id = C.tx_id\r\n AND r.block_id = C.block_id\r\n AND r.msg_index = C.msg_index\r\n LEFT OUTER JOIN sender s\r\n ON r.tx_id = s.tx_id\r\n AND r.block_id = s.block_id\r\n LEFT OUTER JOIN {{ ref('silver__transactions') }}\r\n t\r\n ON r.tx_id = t.tx_id\r\n AND r.block_id = t.block_id\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nibc_in_tx AS (\r\n SELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_index,\r\n 'IBC_TRANSFER_IN' AS transfer_type,\r\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\r\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\r\n CASE\r\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\r\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\r\n END AS currency,\r\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\r\n _inserted_timestamp,\r\n concat_ws(\r\n '-',\r\n block_id,\r\n tx_id,\r\n msg_index,\r\n currency\r\n ) AS unique_key\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'write_acknowledgement'\r\n AND attribute_key = 'packet_data'\r\n AND TRY_PARSE_JSON(attribute_value): amount IS NOT NULL\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nibc_out_txid AS (\r\n SELECT\r\n tx_id\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'ibc_transfer'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nibc_out_tx AS (\r\n SELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n msg_index,\r\n 'IBC_TRANSFER_OUT' AS transfer_type,\r\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\r\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\r\n CASE\r\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\r\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\r\n END AS currency,\r\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\r\n _inserted_timestamp,\r\n concat_ws(\r\n '-',\r\n block_id,\r\n tx_id,\r\n msg_index,\r\n currency\r\n ) AS unique_key\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n tx_id IN (\r\n SELECT\r\n tx_id\r\n FROM\r\n ibc_out_txid\r\n )\r\n AND msg_type = 'send_packet'\r\n AND attribute_key = 'packet_data'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\nibc_transfers_agg AS (\r\n SELECT\r\n *\r\n FROM\r\n ibc_out_tx\r\n UNION ALL\r\n SELECT\r\n *\r\n FROM\r\n ibc_in_tx\r\n),\r\nibc_tx_final AS (\r\n SELECT\r\n i.block_id,\r\n i.block_timestamp,\r\n i.tx_id,\r\n i.tx_succeeded,\r\n i.transfer_type,\r\n i.sender,\r\n i.amount,\r\n i.currency,\r\n i.receiver,\r\n msg_index,\r\n _inserted_timestamp,\r\n unique_key\r\n FROM\r\n ibc_transfers_agg i\r\n)\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n transfer_type,\r\n sender,\r\n amount,\r\n currency,\r\n receiver,\r\n msg_index,\r\n _inserted_timestamp,\r\n unique_key\r\nFROM\r\n ibc_tx_final\r\nUNION ALL\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_succeeded,\r\n transfer_type,\r\n sender,\r\n amount,\r\n currency,\r\n receiver,\r\n msg_index,\r\n _inserted_timestamp,\r\n unique_key\r\nFROM\r\n cosmos_txs_final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": "block_timestamp::DATE", "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__transfers"], "unique_id": "model.cosmos_models.silver__transfers", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__transfers.sql", "original_file_path": "models\\silver\\silver__transfers.sql", "name": "silver__transfers", "alias": "transfers", "checksum": {"name": "sha256", "checksum": "285f537bd1ae9fa40ba6220687a58ab98a7d014c843f57fdb0318c0638f0b64f"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all transfers on the Cosmos Hub, including IBC transfers as on- and off-ramps to Cosmos and wallet to wallet transfers", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TRANSFER_TYPE": {"name": "TRANSFER_TYPE", "description": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The wallet address of the individual sent tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The wallet address of the individual received tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__transfers.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": "block_timestamp::DATE"}, "created_at": 1672417960.5796928, "compiled_sql": "\n\nWITH cosmos_txs AS (\n\n SELECT\n DISTINCT tx_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_value IN (\n '/cosmos.bank.v1beta1.MsgSend',\n '/cosmos.bank.v1beta1.MsgMultiSend'\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nsender_index AS (\n SELECT\n tx_id,\n MIN(msg_index) AS msg_index\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\nGROUP BY\n tx_id\n),\nsender AS (\n SELECT\n m.block_id,\n m.tx_id,\n s.msg_index,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS sender\n FROM\n COSMOS_DEV.silver.msg_attributes\n m\n INNER JOIN sender_index s\n ON m.tx_id = s.tx_id\n AND m.msg_index = s.msg_index\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nmsg_index AS (\n SELECT\n m.block_id,\n v.tx_id,\n attribute_key,\n m.msg_index\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nreceiver AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n attribute_value AS receiver\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'recipient'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\namount AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n COALESCE(\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ),\n TRY_PARSE_JSON(attribute_value) :amount\n ) AS amount,\n COALESCE(\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))),\n TRY_PARSE_JSON(attribute_value) [1] :denom\n ) AS currency\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\ncosmos_txs_final AS (\n SELECT\n r.block_id,\n block_timestamp,\n r.tx_id,\n tx_succeeded,\n 'COSMOS' AS transfer_type,\n r.msg_index,\n sender,\n amount,\n currency,\n receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n r.block_id,\n r.tx_id,\n r.msg_index,\n currency\n ) AS unique_key\n FROM\n receiver r\n LEFT OUTER JOIN amount C\n ON r.tx_id = C.tx_id\n AND r.block_id = C.block_id\n AND r.msg_index = C.msg_index\n LEFT OUTER JOIN sender s\n ON r.tx_id = s.tx_id\n AND r.block_id = s.block_id\n LEFT OUTER JOIN COSMOS_DEV.silver.transactions\n t\n ON r.tx_id = t.tx_id\n AND r.block_id = t.block_id\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_in_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_IN' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'write_acknowledgement'\n AND attribute_key = 'packet_data'\n AND TRY_PARSE_JSON(attribute_value): amount IS NOT NULL\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_out_txid AS (\n SELECT\n tx_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'ibc_transfer'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_out_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_OUT' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n tx_id IN (\n SELECT\n tx_id\n FROM\n ibc_out_txid\n )\n AND msg_type = 'send_packet'\n AND attribute_key = 'packet_data'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_transfers_agg AS (\n SELECT\n *\n FROM\n ibc_out_tx\n UNION ALL\n SELECT\n *\n FROM\n ibc_in_tx\n),\nibc_tx_final AS (\n SELECT\n i.block_id,\n i.block_timestamp,\n i.tx_id,\n i.tx_succeeded,\n i.transfer_type,\n i.sender,\n i.amount,\n i.currency,\n i.receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\n FROM\n ibc_transfers_agg i\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n ibc_tx_final\nUNION ALL\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n cosmos_txs_final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.transfers"}, "model.cosmos_models.silver__blocks": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"_unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nSELECT\r\n block_id,\r\n COALESCE(\r\n DATA :result :block :header :time :: TIMESTAMP,\r\n DATA :block :header :time :: TIMESTAMP,\r\n DATA :result :block :header :timestamp :: TIMESTAMP,\r\n DATA :block :header :timestamp :: TIMESTAMP\r\n ) AS block_timestamp,\r\n 'cosmos' AS blockchain,\r\n COALESCE(\r\n DATA :result :block :header :chain_id :: STRING,\r\n DATA :block :header :chain_id :: STRING\r\n ) AS chain_id,\r\n COALESCE(\r\n ARRAY_SIZE(\r\n DATA :result :block :data :txs\r\n ) :: NUMBER,\r\n ARRAY_SIZE(\r\n DATA :block :data :txs\r\n ) :: NUMBER\r\n ) AS tx_count,\r\n COALESCE(\r\n DATA :result :block :header :proposer_address :: STRING,\r\n DATA :block :header :proposer_address :: STRING\r\n ) AS proposer_address,\r\n COALESCE(\r\n DATA :result :block :header :validators_hash :: STRING,\r\n DATA :block :header :validators_hash :: STRING\r\n ) AS validator_hash,\r\n COALESCE(\r\n DATA :result :block :header,\r\n DATA :block :header\r\n ) AS header,\r\n _inserted_timestamp,\r\n concat_ws(\r\n '-',\r\n chain_id,\r\n block_id\r\n ) AS _unique_key\r\nFROM\r\n {{ ref('bronze__blocks') }}\r\nWHERE\r\n VALUE :data :error IS NULL\r\n AND DATA :error IS NULL\r\n AND DATA :result :begin_block_events IS NULL\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n\r\nqualify ROW_NUMBER() over (\r\n PARTITION BY chain_id,\r\n block_id\r\n ORDER BY\r\n _inserted_timestamp DESC\r\n) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.bronze__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__blocks"], "unique_id": "model.cosmos_models.silver__blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__blocks.sql", "original_file_path": "models\\silver\\silver__blocks.sql", "name": "silver__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "fac8ec75000139cedc0ff1eb8632825cbf3bde372f4e2ab940ca1fdad471bb9f"}, "tags": [], "refs": [["bronze__blocks"]], "sources": [], "metrics": [], "description": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "The name and version of the blockchain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of transactions that occurred during a block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER_ADDRESS": {"name": "PROPOSER_ADDRESS", "description": "The address of the validator that proposed the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VALIDATOR_HASH": {"name": "VALIDATOR_HASH", "description": "The root hash of the new validator set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__blocks.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "_unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672417960.6944447, "compiled_sql": "\n\nSELECT\n block_id,\n COALESCE(\n DATA :result :block :header :time :: TIMESTAMP,\n DATA :block :header :time :: TIMESTAMP,\n DATA :result :block :header :timestamp :: TIMESTAMP,\n DATA :block :header :timestamp :: TIMESTAMP\n ) AS block_timestamp,\n 'cosmos' AS blockchain,\n COALESCE(\n DATA :result :block :header :chain_id :: STRING,\n DATA :block :header :chain_id :: STRING\n ) AS chain_id,\n COALESCE(\n ARRAY_SIZE(\n DATA :result :block :data :txs\n ) :: NUMBER,\n ARRAY_SIZE(\n DATA :block :data :txs\n ) :: NUMBER\n ) AS tx_count,\n COALESCE(\n DATA :result :block :header :proposer_address :: STRING,\n DATA :block :header :proposer_address :: STRING\n ) AS proposer_address,\n COALESCE(\n DATA :result :block :header :validators_hash :: STRING,\n DATA :block :header :validators_hash :: STRING\n ) AS validator_hash,\n COALESCE(\n DATA :result :block :header,\n DATA :block :header\n ) AS header,\n _inserted_timestamp,\n concat_ws(\n '-',\n chain_id,\n block_id\n ) AS _unique_key\nFROM\n COSMOS_DEV.bronze.blocks\nWHERE\n VALUE :data :error IS NULL\n AND DATA :error IS NULL\n AND DATA :result :begin_block_events IS NULL\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.blocks\n)\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY chain_id,\n block_id\n ORDER BY\n _inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.blocks"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_BLOCK_ID", "alias": "msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.237177, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.msgs\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT", "alias": "msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678"}, "created_at": 1672417960.2381709, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_BLOCK_TIMESTAMP", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.249187, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.msgs\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": {"raw_sql": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8\") }}", "test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8"}, "created_at": 1672417960.2501767, "compiled_sql": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.msgs\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0"}, "created_at": 1672417960.2976723, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_TX_ID.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_TX_ID", "alias": "msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.3036563, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.msgs\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR", "alias": "msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8"}, "created_at": 1672417960.3056536, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_TX_SUCCEEDED", "alias": "msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.312687, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.msgs\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN", "alias": "msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed"}, "created_at": 1672417960.3155794, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT", "alias": "msgs_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123"}, "created_at": 1672417960.3206527, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_GROUP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_SUB_GROUP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT", "alias": "msgs_MSG_SUB_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1"}, "created_at": 1672417960.3276446, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_SUB_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_SUB_GROUP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_MSG_INDEX"], "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_MSG_INDEX.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_MSG_INDEX", "alias": "msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_MSG_INDEX.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.33467, "compiled_sql": "\n \n \n\n\n\nselect MSG_INDEX\nfrom COSMOS_DEV.silver.msgs\nwhere MSG_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49b195a36b135b701165de9077016793\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT", "alias": "msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_49b195a36b135b701165de9077016793.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793"}, "created_at": 1672417960.336655, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_MSG_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs_MSG_TYPE.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs_MSG_TYPE", "alias": "msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs_MSG_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.342576, "compiled_sql": "\n \n \n\n\n\nselect MSG_TYPE\nfrom COSMOS_DEV.silver.msgs\nwhere MSG_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR", "alias": "msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd"}, "created_at": 1672417960.345672, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT", "VARIENT"], "column_name": "MSG", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT", "alias": "msgs_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc"}, "created_at": 1672417960.35097, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG'\n and\n relation_column_type not in ('OBJECT', 'VARIENT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msgs__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "not_null_silver__msgs__INSERTED_TIMESTAMP", "alias": "msgs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\not_null_silver__msgs__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.3569396, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.msgs\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240\") }}", "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__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msgs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240"}, "created_at": 1672417960.3599722, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.sql", "original_file_path": "models\\silver\\silver__msgs.yml", "name": "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY", "alias": "msgs_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msgs.yml\\dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.3649738, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.msgs\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_BLOCK_ID", "alias": "msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.4846919, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.msg_attributes\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT", "alias": "msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191"}, "created_at": 1672417960.4866922, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_BLOCK_TIMESTAMP", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.493312, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.msg_attributes\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": {"raw_sql": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf\") }}", "test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf"}, "created_at": 1672417960.4960723, "compiled_sql": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.msg_attributes\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8"}, "created_at": 1672417960.517022, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes_TX_ID.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_TX_ID", "alias": "msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.5220218, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.msg_attributes\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR", "alias": "msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80"}, "created_at": 1672417960.5240226, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT", "alias": "msg_attributes_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20"}, "created_at": 1672417960.531022, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_GROUP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_SUB_GROUP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT", "alias": "msg_attributes_MSG_SUB_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b"}, "created_at": 1672417960.5370219, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_SUB_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_SUB_GROUP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_MSG_INDEX"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes_MSG_INDEX.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_MSG_INDEX", "alias": "msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes_MSG_INDEX.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.5430706, "compiled_sql": "\n \n \n\n\n\nselect MSG_INDEX\nfrom COSMOS_DEV.silver.msg_attributes\nwhere MSG_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT", "alias": "msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc"}, "created_at": 1672417960.5460815, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_INDEX", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_MSG_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes_MSG_TYPE.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_MSG_TYPE", "alias": "msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes_MSG_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.552068, "compiled_sql": "\n \n \n\n\n\nselect MSG_TYPE\nfrom COSMOS_DEV.silver.msg_attributes\nwhere MSG_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR", "alias": "msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376"}, "created_at": 1672417960.5540693, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG_TYPE", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT"], "column_name": "MSG", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT", "alias": "msg_attributes_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42"}, "created_at": 1672417960.5596628, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG'\n and\n relation_column_type not in ('OBJECT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSG", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__msg_attributes__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes__INSERTED_TIMESTAMP", "alias": "msg_attributes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\not_null_silver__msg_attributes__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.5646908, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.msg_attributes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c\") }}", "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__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msg_attributes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c"}, "created_at": 1672417960.5666933, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff.sql", "original_file_path": "models\\silver\\silver__msg_attributes.yml", "name": "dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY", "alias": "msg_attributes_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__msg_attributes.yml\\dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff"}, "created_at": 1672417960.570693, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.msg_attributes\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_ID", "alias": "transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.580691, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.transfers\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT", "alias": "transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f"}, "created_at": 1672417960.5826929, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_TIMESTAMP", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.5876925, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.transfers\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": {"raw_sql": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d\") }}", "test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d"}, "created_at": 1672417960.5896926, "compiled_sql": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.transfers\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1"}, "created_at": 1672417960.6143897, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_TX_ID.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_TX_ID", "alias": "transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.620391, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.transfers\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR", "alias": "transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b"}, "created_at": 1672417960.6223934, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_TX_SUCCEEDED", "alias": "transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6293895, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.transfers\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN", "alias": "transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738"}, "created_at": 1672417960.6323652, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TRANSFER_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_TRANSFER_TYPE.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_TRANSFER_TYPE", "alias": "transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_TRANSFER_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6373918, "compiled_sql": "\n \n \n\n\n\nselect TRANSFER_TYPE\nfrom COSMOS_DEV.silver.transfers\nwhere TRANSFER_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TRANSFER_TYPE", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR", "alias": "transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6"}, "created_at": 1672417960.6403668, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TRANSFER_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TRANSFER_TYPE", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_SENDER"], "unique_id": "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_SENDER.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_SENDER", "alias": "transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_SENDER.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6484387, "compiled_sql": "\n \n \n\n\n\nselect SENDER\nfrom COSMOS_DEV.silver.transfers\nwhere SENDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SENDER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR", "alias": "transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec"}, "created_at": 1672417960.6504478, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'SENDER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "SENDER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_AMOUNT"], "unique_id": "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_AMOUNT.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_AMOUNT", "alias": "transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6554456, "compiled_sql": "\n \n \n\n\n\nselect AMOUNT\nfrom COSMOS_DEV.silver.transfers\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT", "alias": "transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f"}, "created_at": 1672417960.6583693, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_CURRENCY"], "unique_id": "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_CURRENCY.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_CURRENCY", "alias": "transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_CURRENCY.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6634507, "compiled_sql": "\n \n \n\n\n\nselect CURRENCY\nfrom COSMOS_DEV.silver.transfers\nwhere CURRENCY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR", "alias": "transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b"}, "created_at": 1672417960.6654716, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'CURRENCY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_RECEIVER"], "unique_id": "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers_RECEIVER.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers_RECEIVER", "alias": "transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers_RECEIVER.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.670443, "compiled_sql": "\n \n \n\n\n\nselect RECEIVER\nfrom COSMOS_DEV.silver.transfers\nwhere RECEIVER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RECEIVER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR", "alias": "transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86"}, "created_at": 1672417960.6724434, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'RECEIVER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "RECEIVER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transfers__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "not_null_silver__transfers__INSERTED_TIMESTAMP", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\not_null_silver__transfers__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6783707, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.transfers\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20\") }}", "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__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20"}, "created_at": 1672417960.6804512, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58.sql", "original_file_path": "models\\silver\\silver__transfers.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY", "alias": "transfers_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transfers.yml\\dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58"}, "created_at": 1672417960.6853774, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.transfers\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_ID", "alias": "blocks_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6954732, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_TIMESTAMP", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.6974463, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": {"raw_sql": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692\") }}", "test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692"}, "created_at": 1672417960.6994524, "compiled_sql": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.blocks\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27"}, "created_at": 1672417960.7220705, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCKCHAIN"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_BLOCKCHAIN.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_BLOCKCHAIN", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.7272604, "compiled_sql": "\n \n \n\n\n\nselect BLOCKCHAIN\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d"}, "created_at": 1672417960.7297924, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'BLOCKCHAIN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_CHAIN_ID"], "unique_id": "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_CHAIN_ID.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_CHAIN_ID", "alias": "blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_CHAIN_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.737852, "compiled_sql": "\n \n \n\n\n\nselect CHAIN_ID\nfrom COSMOS_DEV.silver.blocks\nwhere CHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CHAIN_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR", "alias": "blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a"}, "created_at": 1672417960.7398515, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'CHAIN_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CHAIN_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_TX_COUNT"], "unique_id": "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_TX_COUNT.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_TX_COUNT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_TX_COUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.746857, "compiled_sql": "\n \n \n\n\n\nselect TX_COUNT\nfrom COSMOS_DEV.silver.blocks\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7"}, "created_at": 1672417960.7488563, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'TX_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_PROPOSER_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_PROPOSER_ADDRESS.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_PROPOSER_ADDRESS", "alias": "blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_PROPOSER_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.753885, "compiled_sql": "\n \n \n\n\n\nselect PROPOSER_ADDRESS\nfrom COSMOS_DEV.silver.blocks\nwhere PROPOSER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR", "alias": "blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a"}, "created_at": 1672417960.755852, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'PROPOSER_ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_VALIDATOR_HASH"], "unique_id": "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks_VALIDATOR_HASH.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks_VALIDATOR_HASH", "alias": "blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks_VALIDATOR_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.7638648, "compiled_sql": "\n \n \n\n\n\nselect VALIDATOR_HASH\nfrom COSMOS_DEV.silver.blocks\nwhere VALIDATOR_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VALIDATOR_HASH", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR", "alias": "blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e"}, "created_at": 1672417960.7658699, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'VALIDATOR_HASH'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VALIDATOR_HASH", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__blocks__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "not_null_silver__blocks__INSERTED_TIMESTAMP", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\not_null_silver__blocks__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672417960.7708628, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.blocks\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169\") }}", "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__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169"}, "created_at": 1672417960.7727757, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67"}, "created_at": 1672417960.7778552, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _UNIQUE_KEY\n from COSMOS_DEV.silver.blocks\n group by _UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__blocks"}, "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": {"raw_sql": "{{ test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP <= CURRENT_DATE - 1\") }}", "test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "block_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.cosmos_models.test_sequence_gaps", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": "BLOCK_TIMESTAMP <= CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "sequence_gaps_silver", "fqn": ["cosmos_models", "silver", "sequence_gaps_silver__blocks_block_ID"], "unique_id": "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "sequence_gaps_silver__blocks_block_ID.sql", "original_file_path": "models\\silver\\silver__blocks.yml", "name": "sequence_gaps_silver__blocks_block_ID", "alias": "blocks_block_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__blocks.yml\\sequence_gaps_silver__blocks_block_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"where": "BLOCK_TIMESTAMP <= CURRENT_DATE - 1"}, "created_at": 1672417960.7828615, "compiled_sql": "WITH source AS (\n SELECT\n \n block_ID,\n LAG(\n block_ID,\n 1\n ) over (\n \n ORDER BY\n block_ID ASC\n ) AS prev_block_ID\n FROM\n (select * from COSMOS_DEV.silver.blocks where BLOCK_TIMESTAMP <= CURRENT_DATE - 1) dbt_subquery\n)\nSELECT\n \n prev_block_ID,\n block_ID,\n block_ID - prev_block_ID\n - 1 AS gap\nFROM\n source\nWHERE\n block_ID - prev_block_ID <> 1\nORDER BY\n gap DESC ", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__blocks"}, "model.cosmos_models.core__fact_transactions": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\n\r\nWITH\r\n\r\n{% if is_incremental() %}\r\nmax_block_partition AS (\r\n\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n ) AS _inserted_timestamp\r\n FROM\r\n {{ ref('silver__transactions') }}\r\n),\r\n{% endif %}\r\n\r\nfee AS (\r\n SELECT\r\n block_id, \r\n tx_id,\r\n attribute_value AS fee\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_key = 'fee'\r\n AND msg_type = 'tx'\r\n \r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n),\r\n\r\nspender AS (\r\n SELECT\r\n block_id, \r\n tx_id,\r\n SPLIT_PART(\r\n attribute_value,\r\n '/',\r\n 0\r\n ) AS tx_from\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_key = 'acc_seq'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n\r\nqualify(ROW_NUMBER() over(PARTITION BY tx_id\r\nORDER BY\r\n msg_index)) = 1\r\n),\r\n\r\nno_fee_tx_raw as (\r\n select \r\n block_id, \r\n tx_id, \r\n f.index,\r\n f.value: type ::string as event_type,\r\n try_base64_decode_string( f.value:attributes[0]:value) as recipient,\r\n try_base64_decode_string( f.value:attributes[1]:value) as sender ,\r\n try_base64_decode_string( f.value:attributes[2]:value) as amount_raw ,\r\n CASE \r\n WHEN amount_raw like '%uatom' AND amount_raw not like '%ibc%' \r\n THEN amount_raw \r\n ELSE '0uatom' \r\n END as amount \r\n\r\n FROM\r\n {{ ref('silver__transactions') }} , \r\n TABLE (flatten (input => msgs)) f\r\n \r\n WHERE \r\n tx_id NOT IN \r\n (select \r\n tx_id \r\n from fee\r\n )\r\n AND event_type = 'transfer'\r\n \r\n qualify row_number() over (partition by tx_id order by f.index asc) = 1 \r\n ),\r\n \r\nno_fee_transactions AS (\r\nSELECT\r\n t.block_id,\r\n t.block_timestamp,\r\n t.tx_id,\r\n f.sender as tx_from,\r\n tx_succeeded,\r\n codespace,\r\n COALESCE(\r\n amount,\r\n '0uatom'\r\n ) AS fee_raw,\r\n regexp_substr(fee_raw, '[0-9]+') as fee, \r\n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \r\n gas_used,\r\n gas_wanted,\r\n tx_code,\r\n tx_log,\r\n msgs,\r\n _inserted_timestamp, \r\n unique_key\r\nFROM\r\n {{ ref('silver__transactions') }} \r\n t\r\n INNER JOIN no_fee_tx_raw f\r\n ON t.tx_id = f.tx_id\r\n AND t.block_id = f.block_id\r\n \r\n\r\n),\r\n\r\nfee_transactions AS (\r\nSELECT\r\n t.block_id,\r\n t.block_timestamp,\r\n t.tx_id,\r\n s.tx_from,\r\n tx_succeeded,\r\n codespace,\r\n COALESCE(\r\n fee,\r\n '0uatom'\r\n ) AS fee_raw,\r\n regexp_substr(fee_raw, '[0-9]+') as fee, \r\n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \r\n gas_used,\r\n gas_wanted,\r\n tx_code,\r\n tx_log,\r\n msgs,\r\n _inserted_timestamp, \r\n unique_key\r\nFROM\r\n {{ ref('silver__transactions') }} \r\n t\r\n INNER JOIN fee f\r\n ON t.tx_id = f.tx_id\r\n AND t.block_id = f.block_id\r\n INNER JOIN spender s\r\n ON t.tx_id = s.tx_id\r\n AND t.block_id = s.block_id\r\n), \r\n\r\nfinal_transactions as (\r\nselect * \r\n from no_fee_transactions\r\n\r\nunion all \r\n\r\nselect * \r\n from fee_transactions\r\n)\r\n\r\n\r\nSELECT \r\n block_id,\r\n block_timestamp,\r\n tx_id,\r\n tx_from,\r\n tx_succeeded,\r\n codespace,\r\n fee, \r\n fee_denom, \r\n gas_used,\r\n gas_wanted,\r\n tx_code,\r\n tx_log,\r\n msgs,\r\n _inserted_timestamp, \r\n unique_key\r\n\r\nFROM final_transactions", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_transactions"], "unique_id": "model.cosmos_models.core__fact_transactions", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_transactions.sql", "original_file_path": "models\\gold\\core__fact_transactions.sql", "name": "core__fact_transactions", "alias": "fact_transactions", "checksum": {"name": "sha256", "checksum": "da4b04b660881a5b4e9468805d900caa3bb16dbe14c3e30fc6d355ade78d9874"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"], ["silver__transactions"], ["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_FROM": {"name": "TX_FROM", "description": "The wallet address of the individual who initiated the transaction", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CODESPACE": {"name": "CODESPACE", "description": "Namespace for the code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FEE": {"name": "FEE", "description": "The fee is paid by the initiator of the transaction. Fee = gas * gas price.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FEE_DENOM": {"name": "FEE_DENOM", "description": "The denominator of the transaction fee.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The amount of gas consumed by the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_WANTED": {"name": "GAS_WANTED", "description": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_CODE": {"name": "TX_CODE", "description": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_LOG": {"name": "TX_LOG", "description": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSGS": {"name": "MSGS", "description": "The underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_transactions.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672426259.7254384, "compiled_sql": "\n\n\nWITH\n\n\nmax_block_partition AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n COSMOS_DEV.silver.transactions\n),\n\n\nfee AS (\n SELECT\n block_id, \n tx_id,\n attribute_value AS fee\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'fee'\n AND msg_type = 'tx'\n \n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.core.fact_transactions\n)\n\n),\n\nspender AS (\n SELECT\n block_id, \n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS tx_from\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.core.fact_transactions\n)\n\n\nqualify(ROW_NUMBER() over(PARTITION BY tx_id\nORDER BY\n msg_index)) = 1\n),\n\nno_fee_tx_raw as (\n select \n block_id, \n tx_id, \n f.index,\n f.value: type ::string as event_type,\n try_base64_decode_string( f.value:attributes[0]:value) as recipient,\n try_base64_decode_string( f.value:attributes[1]:value) as sender ,\n try_base64_decode_string( f.value:attributes[2]:value) as amount_raw ,\n CASE \n WHEN amount_raw like '%uatom' AND amount_raw not like '%ibc%' \n THEN amount_raw \n ELSE '0uatom' \n END as amount \n\n FROM\n COSMOS_DEV.silver.transactions , \n TABLE (flatten (input => msgs)) f\n \n WHERE \n tx_id NOT IN \n (select \n tx_id \n from fee\n )\n AND event_type = 'transfer'\n \n qualify row_number() over (partition by tx_id order by f.index asc) = 1 \n ),\n \nno_fee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n f.sender as tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n amount,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n COSMOS_DEV.silver.transactions \n t\n INNER JOIN no_fee_tx_raw f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n \n\n),\n\nfee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n s.tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n fee,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n COSMOS_DEV.silver.transactions \n t\n INNER JOIN fee f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n INNER JOIN spender s\n ON t.tx_id = s.tx_id\n AND t.block_id = s.block_id\n), \n\nfinal_transactions as (\nselect * \n from no_fee_transactions\n\nunion all \n\nselect * \n from fee_transactions\n)\n\n\nSELECT \n block_id,\n block_timestamp,\n tx_id,\n tx_from,\n tx_succeeded,\n codespace,\n fee, \n fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\n\nFROM final_transactions", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID", "alias": "fact_transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e"}, "created_at": 1672426259.7334034, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP", "alias": "fact_transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8"}, "created_at": 1672426259.746546, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID", "alias": "fact_transactions_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce"}, "created_at": 1672426259.7505386, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TX_SUCCEEDED = 'TRUE'\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FROM", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": "TX_SUCCEEDED = 'TRUE'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_TX_FROM"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_core__fact_transactions_TX_FROM.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "not_null_core__fact_transactions_TX_FROM", "alias": "fact_transactions_TX_FROM", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\not_null_core__fact_transactions_TX_FROM.sql", "build_path": null, "deferred": false, "unrendered_config": {"where": "TX_SUCCEEDED = 'TRUE'"}, "created_at": 1672426259.755606, "compiled_sql": "\n \n \n\n\n\nselect TX_FROM\nfrom (select * from COSMOS_DEV.core.fact_transactions where TX_SUCCEEDED = 'TRUE') dbt_subquery\nwhere TX_FROM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_FROM", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED", "alias": "fact_transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e"}, "created_at": 1672426259.7576172, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CODESPACE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE", "alias": "fact_transactions_CODESPACE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1"}, "created_at": 1672426259.7616305, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CODESPACE' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CODESPACE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "FEE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_FEE"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_core__fact_transactions_FEE.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "not_null_core__fact_transactions_FEE", "alias": "fact_transactions_FEE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\not_null_core__fact_transactions_FEE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426259.7656388, "compiled_sql": "\n \n \n\n\n\nselect FEE\nfrom COSMOS_DEV.core.fact_transactions\nwhere FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "FEE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "FEE_DENOM", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_FEE_DENOM"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_core__fact_transactions_FEE_DENOM.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "not_null_core__fact_transactions_FEE_DENOM", "alias": "fact_transactions_FEE_DENOM", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\not_null_core__fact_transactions_FEE_DENOM.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426259.766623, "compiled_sql": "\n \n \n\n\n\nselect FEE_DENOM\nfrom COSMOS_DEV.core.fact_transactions\nwhere FEE_DENOM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "FEE_DENOM", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED", "alias": "fact_transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a"}, "created_at": 1672426259.7686324, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('GAS_USED' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_USED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED", "alias": "fact_transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a"}, "created_at": 1672426259.772554, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('GAS_WANTED' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_WANTED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE", "alias": "fact_transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15"}, "created_at": 1672426259.777626, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_CODE' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_CODE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG", "alias": "fact_transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b"}, "created_at": 1672426259.780619, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_LOG' as TEXT) as column_name,\n 11 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_LOG", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSGS", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS", "alias": "fact_transactions_MSGS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed"}, "created_at": 1672426259.7846317, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('MSGS' as TEXT) as column_name,\n 12 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSGS", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY", "alias": "fact_transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4"}, "created_at": 1672426259.787621, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 14 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_core", "fqn": ["cosmos_models", "gold", "dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210.sql", "original_file_path": "models\\gold\\core__fact_transactions.yml", "name": "dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY", "alias": "fact_transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_transactions.yml\\dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210"}, "created_at": 1672426259.7916222, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.core.fact_transactions\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.core__fact_transactions"}, "model.cosmos_models.silver__transactions": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"unique_key\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = 'block_timestamp::DATE',\r\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION\",\r\n) }}\r\n\r\nWITH base_transactions AS (\r\n\r\n SELECT\r\n block_id,\r\n t.value :hash :: STRING AS tx_id,\r\n t.value :tx_result :codespace AS codespace,\r\n t.value :tx_result :gas_used :: NUMBER AS gas_used,\r\n t.value :tx_result :gas_wanted :: NUMBER AS gas_wanted,\r\n CASE\r\n WHEN t.value :tx_result :code :: NUMBER = 0 THEN TRUE\r\n ELSE FALSE\r\n END AS tx_succeeded,\r\n t.value :tx_result :code :: NUMBER AS tx_code,\r\n t.value :tx_result :events AS msgs,\r\n t.value :tx_result :log :: STRING AS tx_log,\r\n _inserted_timestamp\r\n FROM\r\n {{ ref('bronze__tx_search') }},\r\n TABLE(FLATTEN(DATA :result :txs)) t\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n )\r\n{% endif %}\r\n)\r\nSELECT\r\n t.block_id,\r\n b.block_timestamp,\r\n tx_id,\r\n codespace,\r\n gas_used,\r\n gas_wanted,\r\n tx_succeeded,\r\n tx_code,\r\n msgs,\r\n tx_log,\r\n t._inserted_timestamp,\r\n concat_ws(\r\n '-',\r\n t.block_id,\r\n tx_id\r\n ) AS unique_key\r\nFROM\r\n base_transactions t\r\n JOIN {{ ref('silver__blocks') }}\r\n b\r\n ON t.block_id = b.block_id\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n b._inserted_timestamp :: DATE >= (\r\n SELECT\r\n MAX(_inserted_timestamp) :: DATE - 2\r\n FROM\r\n {{ this }}\r\n )\r\n{% endif %}\r\n\r\nqualify ROW_NUMBER() over (\r\n PARTITION BY t.block_id,\r\n tx_id\r\n ORDER BY\r\n t._inserted_timestamp DESC\r\n) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": "block_timestamp::DATE", "incremental_strategy": "delete+insert", "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__transactions"], "unique_id": "model.cosmos_models.silver__transactions", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__transactions.sql", "original_file_path": "models\\silver\\silver__transactions.sql", "name": "silver__transactions", "alias": "transactions", "checksum": {"name": "sha256", "checksum": "56f2da3f09e92e713bee5ab2fe72569d85f15e8dc4414aa42956a4327be6bef2"}, "tags": [], "refs": [["bronze__tx_search"], ["silver__blocks"]], "sources": [], "metrics": [], "description": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CODESPACE": {"name": "CODESPACE", "description": "Namespace for the code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The amount of gas consumed by the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_WANTED": {"name": "GAS_WANTED", "description": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_CODE": {"name": "TX_CODE", "description": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSGS": {"name": "MSGS", "description": "The underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_LOG": {"name": "TX_LOG", "description": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__transactions.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": "block_timestamp::DATE", "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION"]}, "created_at": 1672426722.5661066, "compiled_sql": "\n\nWITH base_transactions AS (\n\n SELECT\n block_id,\n t.value :hash :: STRING AS tx_id,\n t.value :tx_result :codespace AS codespace,\n t.value :tx_result :gas_used :: NUMBER AS gas_used,\n t.value :tx_result :gas_wanted :: NUMBER AS gas_wanted,\n CASE\n WHEN t.value :tx_result :code :: NUMBER = 0 THEN TRUE\n ELSE FALSE\n END AS tx_succeeded,\n t.value :tx_result :code :: NUMBER AS tx_code,\n t.value :tx_result :events AS msgs,\n t.value :tx_result :log :: STRING AS tx_log,\n _inserted_timestamp\n FROM\n COSMOS_DEV.bronze.tx_search,\n TABLE(FLATTEN(DATA :result :txs)) t\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transactions\n )\n\n)\nSELECT\n t.block_id,\n b.block_timestamp,\n tx_id,\n codespace,\n gas_used,\n gas_wanted,\n tx_succeeded,\n tx_code,\n msgs,\n tx_log,\n t._inserted_timestamp,\n concat_ws(\n '-',\n t.block_id,\n tx_id\n ) AS unique_key\nFROM\n base_transactions t\n JOIN COSMOS_DEV.silver.blocks\n b\n ON t.block_id = b.block_id\n\n\nWHERE\n b._inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transactions\n )\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY t.block_id,\n tx_id\n ORDER BY\n t._inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.transactions"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_ID", "alias": "transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.5661066, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.transactions\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT", "alias": "transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea"}, "created_at": 1672426722.5661066, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_TIMESTAMP", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.5844097, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.transactions\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": {"raw_sql": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb\") }}", "test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb"}, "created_at": 1672426722.5844097, "compiled_sql": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.transactions\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb"}, "created_at": 1672426722.6385288, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_TX_ID.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_TX_ID", "alias": "transactions_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6435866, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.transactions\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_GAS_USED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_GAS_USED.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_GAS_USED", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6464128, "compiled_sql": "\n \n \n\n\n\nselect GAS_USED\nfrom COSMOS_DEV.silver.transactions\nwhere GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07"}, "created_at": 1672426722.6494234, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_GAS_WANTED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_GAS_WANTED.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_GAS_WANTED", "alias": "transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_GAS_WANTED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6544232, "compiled_sql": "\n \n \n\n\n\nselect GAS_WANTED\nfrom COSMOS_DEV.silver.transactions\nwhere GAS_WANTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_WANTED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT", "alias": "transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0"}, "created_at": 1672426722.6564262, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'GAS_WANTED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "GAS_WANTED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_TX_SUCCEEDED", "alias": "transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.663423, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.transactions\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN", "alias": "transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada"}, "created_at": 1672426722.6644235, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_CODE"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_TX_CODE.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_TX_CODE", "alias": "transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_TX_CODE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6694233, "compiled_sql": "\n \n \n\n\n\nselect TX_CODE\nfrom COSMOS_DEV.silver.transactions\nwhere TX_CODE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_CODE", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT", "alias": "transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0"}, "created_at": 1672426722.671433, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_CODE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_CODE", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSGS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_MSGS"], "unique_id": "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_MSGS.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_MSGS", "alias": "transactions_MSGS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_MSGS.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6781929, "compiled_sql": "\n \n \n\n\n\nselect MSGS\nfrom COSMOS_DEV.silver.transactions\nwhere MSGS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "MSGS", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_LOG"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions_TX_LOG.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions_TX_LOG", "alias": "transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions_TX_LOG.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6802275, "compiled_sql": "\n \n \n\n\n\nselect TX_LOG\nfrom COSMOS_DEV.silver.transactions\nwhere TX_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_LOG", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR", "alias": "transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e"}, "created_at": 1672426722.682385, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_LOG'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_LOG", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__transactions__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "not_null_silver__transactions__INSERTED_TIMESTAMP", "alias": "transactions", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\not_null_silver__transactions__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672426722.6873918, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.transactions\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07\") }}", "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__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transactions", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07"}, "created_at": 1672426722.6893835, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854.sql", "original_file_path": "models\\silver\\silver__transactions.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY", "alias": "transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__transactions.yml\\dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854"}, "created_at": 1672426722.6933124, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.transactions\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__transactions"}, "model.cosmos_models.bronze__tx_search": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = 'block_id',\r\n cluster_by = ['_inserted_timestamp::date'],\r\n merge_update_columns = [\"block_id\"],\r\n) }}\r\n\r\nWITH meta AS (\r\n\r\n SELECT\r\n registered_on,\r\n last_modified,\r\n LEAST(\r\n last_modified,\r\n registered_on\r\n ) AS _inserted_timestamp,\r\n file_name\r\n FROM\r\n TABLE(\r\n information_schema.external_table_files(\r\n table_name => '{{ source( \"bronze_streamline\", \"tx_search\") }}'\r\n )\r\n ) A\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n LEAST(\r\n registered_on,\r\n last_modified\r\n ) >= (\r\n SELECT\r\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\r\n FROM\r\n {{ this }})\r\n )\r\n{% else %}\r\n)\r\n{% endif %}\r\n\r\nSELECT\r\n VALUE,\r\n _partition_by_block_id,\r\n block_number AS block_id,\r\n metadata,\r\n DATA,\r\n TO_TIMESTAMP(\r\n m._inserted_timestamp\r\n ) AS _inserted_timestamp\r\nFROM\r\n {{ source(\r\n 'bronze_streamline',\r\n 'tx_search'\r\n ) }}\r\n JOIN meta m\r\n ON m.file_name = metadata$filename\r\nWHERE\r\n DATA: error IS NULL\r\n qualify(ROW_NUMBER() over (PARTITION BY block_number\r\nORDER BY\r\n _inserted_timestamp DESC)) = 1", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze", "fqn": ["cosmos_models", "bronze", "bronze__tx_search"], "unique_id": "model.cosmos_models.bronze__tx_search", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "bronze\\bronze__tx_search.sql", "original_file_path": "models\\bronze\\bronze__tx_search.sql", "name": "bronze__tx_search", "alias": "tx_search", "checksum": {"name": "sha256", "checksum": "cc3f158c66b1d40a99535a3ca65f74d0546db4bd28e787a59c257529ef4d5f9d"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "tx_search"], ["bronze_streamline", "tx_search"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\bronze\\bronze__tx_search.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "block_id", "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"]}, "created_at": 1672432117.1566167, "compiled_sql": "\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.tx_search'\n )\n ) A\n\n\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.bronze.tx_search)\n )\n\n\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n streamline.COSMOS.tx_search\n JOIN meta m\n ON m.file_name = metadata$filename\nWHERE\n DATA: error IS NULL\n qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze.tx_search"}, "model.cosmos_models.core__fact_governance_submit_proposal": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT \r\n block_id, \r\n block_timestamp, \r\n tx_id, \r\n tx_succeeded,\r\n proposer, \r\n proposal_id, \r\n proposal_type\r\nFROM {{ ref('silver__governance_submit_proposal') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_submit_proposal"], "unique_id": "model.cosmos_models.core__fact_governance_submit_proposal", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_governance_submit_proposal.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.sql", "name": "core__fact_governance_submit_proposal", "alias": "fact_governance_submit_proposal", "checksum": {"name": "sha256", "checksum": "97b717b971f20d65bfe0791bdc62dd9972b6e25fc90818661ebe25220c74f88b"}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER": {"name": "PROPOSER", "description": "The address of the validator that submitted the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_TYPE": {"name": "PROPOSAL_TYPE", "description": "The type of proposal that was submitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_governance_submit_proposal.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672748713.94604, "compiled_sql": "\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n proposer, \n proposal_id, \n proposal_type\nFROM COSMOS_DEV.silver.governance_submit_proposal", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_submit_proposal"}, "model.cosmos_models.core__fact_governance_proposal_deposits": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT \r\n block_id, \r\n block_timestamp, \r\n tx_id, \r\n tx_succeeded,\r\n depositor, \r\n proposal_id, \r\n amount / POW(10, COALESCE(t.decimal, 0)) :: NUMBER AS amount, \r\n currency, \r\n t.decimal\r\nFROM {{ ref('silver__governance_proposal_deposits') }} g\r\nLEFT OUTER JOIN {{ ref('core__dim_tokens')}} t\r\nON g.currency = t.address", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_proposal_deposits"], "unique_id": "model.cosmos_models.core__fact_governance_proposal_deposits", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_governance_proposal_deposits.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.sql", "name": "core__fact_governance_proposal_deposits", "alias": "fact_governance_proposal_deposits", "checksum": {"name": "sha256", "checksum": "a99c77299dc794254b2bbc3e269d68c6d1ae2f299465f92537e6197fe8517482"}, "tags": [], "refs": [["silver__governance_proposal_deposits"], ["core__dim_tokens"]], "sources": [], "metrics": [], "description": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on. The columns blockchain, chain_id, and tx_status will be deprecating soon.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DECIMAL": {"name": "DECIMAL", "description": "Divide amount by decimal to get the actual amount of currency being transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_governance_proposal_deposits.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672748714.1156356, "compiled_sql": "\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n depositor, \n proposal_id, \n amount / POW(10, COALESCE(t.decimal, 0)) :: NUMBER AS amount, \n currency, \n t.decimal\nFROM COSMOS_DEV.silver.governance_proposal_deposits g\nLEFT OUTER JOIN COSMOS_DEV.core.dim_tokens t\nON g.currency = t.address", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_proposal_deposits"}, "model.cosmos_models.core__dim_vote_options": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT \r\n DISTINCT vote_option AS vote_option, \r\n CASE \r\n WHEN vote_option = 1 THEN \r\n 'YES'\r\n WHEN vote_option = 2 THEN\r\n 'ABSTAIN'\r\n WHEN vote_option = 3 THEN\r\n 'NO'\r\n WHEN vote_option = 4 THEN\r\n 'NO WITH VETO'\r\n ELSE 'NULL'\r\n END AS description \r\n\r\nFROM {{ ref('silver__governance_votes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_vote_options"], "unique_id": "model.cosmos_models.core__dim_vote_options", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__dim_vote_options.sql", "original_file_path": "models\\gold\\core__dim_vote_options.sql", "name": "core__dim_vote_options", "alias": "dim_vote_options", "checksum": {"name": "sha256", "checksum": "870226c2a1cf3df32e023445cf740a4685c4c387fd9a15b136215a70a187797a"}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "Dimensional table with the vote options on Cosmos and what they correspond to.", "columns": {"VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "This describes the vote option the user selected", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__dim_vote_options.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_vote_options.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672748713.922063, "compiled_sql": "\n\nSELECT \n DISTINCT vote_option AS vote_option, \n CASE \n WHEN vote_option = 1 THEN \n 'YES'\n WHEN vote_option = 2 THEN\n 'ABSTAIN'\n WHEN vote_option = 3 THEN\n 'NO'\n WHEN vote_option = 4 THEN\n 'NO WITH VETO'\n ELSE 'NULL'\n END AS description \n\nFROM COSMOS_DEV.silver.governance_votes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_vote_options"}, "model.cosmos_models.core__fact_governance_votes": {"raw_sql": "{{ config(\r\n materialized = 'view'\r\n) }}\r\n\r\nSELECT\r\n block_id, \r\n block_timestamp, \r\n tx_id, \r\n tx_succeeded, \r\n voter, \r\n proposal_id, \r\n vote_option, \r\n vote_weight\r\nFROM {{ ref('silver__governance_votes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_votes"], "unique_id": "model.cosmos_models.core__fact_governance_votes", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "gold\\core__fact_governance_votes.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.sql", "name": "core__fact_governance_votes", "alias": "fact_governance_votes", "checksum": {"name": "sha256", "checksum": "c76179df286d80adc5c83722e4216b32844a23b4972ce1fa912c17a07d692ee1"}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "Records of all votes on proposals.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "Address of the delegator that voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\gold\\core__fact_governance_votes.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1672748714.0142465, "compiled_sql": "\n\nSELECT\n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded, \n voter, \n proposal_id, \n vote_option, \n vote_weight\nFROM COSMOS_DEV.silver.governance_votes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('core__dim_vote_options')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_vote_options"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598.sql", "original_file_path": "models\\gold\\core__dim_vote_options.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION", "alias": "dim_vote_options_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_vote_options"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_vote_options.yml\\dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598"}, "created_at": 1672748713.9290438, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('VOTE_OPTION' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTE_OPTION", "file_key_name": "models.core__dim_vote_options"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DESCRIPTION", "model": "{{ get_where_subquery(ref('core__dim_vote_options')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_vote_options"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e.sql", "original_file_path": "models\\gold\\core__dim_vote_options.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION", "alias": "dim_vote_options_DESCRIPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_vote_options"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__dim_vote_options.yml\\dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e"}, "created_at": 1672748713.9410417, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('DESCRIPTION' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DESCRIPTION", "file_key_name": "models.core__dim_vote_options"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID", "alias": "fact_governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e"}, "created_at": 1672748713.947052, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP", "alias": "fact_governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221"}, "created_at": 1672748713.9509704, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID", "alias": "fact_governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f"}, "created_at": 1672748713.9550445, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED", "alias": "fact_governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b"}, "created_at": 1672748713.9580343, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER", "alias": "fact_governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af"}, "created_at": 1672748713.9610398, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSER' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID", "alias": "fact_governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1"}, "created_at": 1672748713.9652402, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce.sql", "original_file_path": "models\\gold\\core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE", "alias": "fact_governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_submit_proposal.yml\\dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce"}, "created_at": 1672748713.9692845, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_TYPE", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID", "alias": "fact_governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0"}, "created_at": 1672748714.0142465, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP", "alias": "fact_governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a"}, "created_at": 1672748714.0142465, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d6049229371780818cf99f9daebee135\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID", "alias": "fact_governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_d6049229371780818cf99f9daebee135.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135"}, "created_at": 1672748714.0142465, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED", "alias": "fact_governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4"}, "created_at": 1672748714.0142465, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER", "alias": "fact_governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546"}, "created_at": 1672748714.0299616, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('VOTER' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTER", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID", "alias": "fact_governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5"}, "created_at": 1672748714.0299616, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e.sql", "original_file_path": "models\\gold\\core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION", "alias": "fact_governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_votes.yml\\dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e"}, "created_at": 1672748714.0299616, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('VOTE_OPTION' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTE_OPTION", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID", "alias": "fact_governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054"}, "created_at": 1672748714.1166363, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP", "alias": "fact_governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb"}, "created_at": 1672748714.1205537, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID", "alias": "fact_governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c"}, "created_at": 1672748714.123643, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED", "alias": "fact_governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485"}, "created_at": 1672748714.1275554, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR", "alias": "fact_governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f"}, "created_at": 1672748714.1315548, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('DEPOSITOR' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DEPOSITOR", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID", "alias": "fact_governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80"}, "created_at": 1672748714.134555, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT", "alias": "fact_governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245"}, "created_at": 1672748714.1385553, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('AMOUNT' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY", "alias": "fact_governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e"}, "created_at": 1672748714.1415558, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('CURRENCY' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": {"raw_sql": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e\") }}", "test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DECIMAL", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e.sql", "original_file_path": "models\\gold\\core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL", "alias": "fact_governance_proposal_deposits_DECIMAL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\gold\\core__fact_governance_proposal_deposits.yml\\dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e"}, "created_at": 1672748714.1445563, "compiled_sql": "\n\n with test_data as (\n\n select\n cast('DECIMAL' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DECIMAL", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "model.cosmos_models.silver__governance_submit_proposal": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"tx_id\",\r\n incremental_strategy = 'merge',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nWITH\r\n\r\n{% if is_incremental() %}\r\nmax_date AS (\r\n\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n ) _inserted_timestamp\r\n FROM\r\n {{ this }}\r\n),\r\n{% endif %}\r\n\r\nproposal_ids AS (\r\n SELECT\r\n tx_id,\r\n attribute_value AS proposal_id\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'submit_proposal'\r\n AND attribute_key = 'proposal_id'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n)\r\n{% endif %}\r\n),\r\nproposal_type AS (\r\n SELECT\r\n tx_id,\r\n attribute_value AS proposal_type\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'submit_proposal'\r\n AND attribute_key = 'proposal_type'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n)\r\n{% endif %}\r\n),\r\nproposer AS (\r\n SELECT\r\n tx_id,\r\n SPLIT_PART(\r\n attribute_value,\r\n '/',\r\n 0\r\n ) AS proposer\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_key = 'acc_seq'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n)\r\n{% endif %}\r\n)\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n p.tx_id,\r\n tx_succeeded,\r\n proposer,\r\n p.proposal_id :: NUMBER AS proposal_id,\r\n y.proposal_type,\r\n _inserted_timestamp\r\nFROM\r\n proposal_ids p\r\n INNER JOIN proposal_type y\r\n ON p.tx_id = y.tx_id\r\n INNER JOIN proposer pp\r\n ON p.tx_id = pp.tx_id\r\n LEFT OUTER JOIN {{ ref('silver__transactions') }}\r\n t\r\n ON p.tx_id = t.tx_id\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n )\r\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "merge", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_submit_proposal"], "unique_id": "model.cosmos_models.silver__governance_submit_proposal", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__governance_submit_proposal.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.sql", "name": "silver__governance_submit_proposal", "alias": "governance_submit_proposal", "checksum": {"name": "sha256", "checksum": "9998ac4e102164dd528c452839e574fc5a955a2de070ea488f89f00e5a69675c"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER": {"name": "PROPOSER", "description": "The address of the validator that submitted the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_TYPE": {"name": "PROPOSAL_TYPE", "description": "The type of proposal that was submitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__governance_submit_proposal.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "tx_id", "incremental_strategy": "merge", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672753634.1227846, "compiled_sql": "\n\nWITH\n\n\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n COSMOS_DEV.silver.governance_submit_proposal\n),\n\n\nproposal_ids AS (\n SELECT\n tx_id,\n attribute_value AS proposal_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_id'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\nproposal_type AS (\n SELECT\n tx_id,\n attribute_value AS proposal_type\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_type'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\nproposer AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS proposer\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n proposer,\n p.proposal_id :: NUMBER AS proposal_id,\n y.proposal_type,\n _inserted_timestamp\nFROM\n proposal_ids p\n INNER JOIN proposal_type y\n ON p.tx_id = y.tx_id\n INNER JOIN proposer pp\n ON p.tx_id = pp.tx_id\n LEFT OUTER JOIN COSMOS_DEV.silver.transactions\n t\n ON p.tx_id = t.tx_id\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_BLOCK_ID", "alias": "governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1305733, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc"}, "created_at": 1672753634.1315732, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP", "alias": "governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1427484, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d"}, "created_at": 1672753634.1441596, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_TX_ID.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_TX_ID", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1492536, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f"}, "created_at": 1672753634.1511602, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_TX_SUCCEEDED", "alias": "governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1552424, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN", "alias": "governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3"}, "created_at": 1672753634.1571672, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSER"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSER.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSER", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_PROPOSER.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1594188, "compiled_sql": "\n \n \n\n\n\nselect PROPOSER\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1"}, "created_at": 1672753634.1624603, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217\") }}", "test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "cosmos1[0-9a-z]{38,38}", "column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217"}, "created_at": 1672753634.1674554, "compiled_sql": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PROPOSER, 'cosmos1[0-9a-z]{38,38}', 1, 1)\n\n\n > 0\n as expression\n\n\n from COSMOS_DEV.silver.governance_submit_proposal\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": [], "relation_name": null, "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSAL_ID.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSAL_ID", "alias": "governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1825476, "compiled_sql": "\n \n \n\n\n\nselect PROPOSAL_ID\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96"}, "created_at": 1672753634.184535, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE", "alias": "governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.188544, "compiled_sql": "\n \n \n\n\n\nselect PROPOSAL_TYPE\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSAL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_TYPE", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR", "alias": "governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35"}, "created_at": 1672753634.190538, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSAL_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_TYPE", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP", "alias": "governance_submit_proposal", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753634.1944532, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a\") }}", "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__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_submit_proposal", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a"}, "created_at": 1672753634.196557, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID"], "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de.sql", "original_file_path": "models\\silver\\silver__governance_submit_proposal.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_submit_proposal.yml\\dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de"}, "created_at": 1672753634.2005503, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID\n from COSMOS_DEV.silver.governance_submit_proposal\n group by TX_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__governance_submit_proposal"}, "model.cosmos_models.silver__governance_proposal_deposits": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"tx_id\",\r\n incremental_strategy = 'merge',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nWITH\r\n\r\n{% if is_incremental() %}\r\nmax_date AS (\r\n\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n ) _inserted_timestamp\r\n FROM\r\n {{ this }}\r\n),\r\n{% endif %}\r\n\r\nproposal_ids AS (\r\n SELECT\r\n tx_id,\r\n attribute_value AS proposal_id\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'proposal_deposit'\r\n AND attribute_key = 'proposal_id'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n)\r\n{% endif %}\r\n),\r\ndeposit_value AS (\r\n SELECT\r\n tx_id,\r\n SPLIT_PART(\r\n TRIM(\r\n REGEXP_REPLACE(\r\n attribute_value,\r\n '[^[:digit:]]',\r\n ' '\r\n )\r\n ),\r\n ' ',\r\n 0\r\n ) AS amount,\r\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))) AS currency\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n m\r\n WHERE\r\n msg_type = 'proposal_deposit'\r\n AND attribute_key = 'amount'\r\n AND attribute_value IS NOT NULL\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n max_date\r\n)\r\n{% endif %}\r\n),\r\ndepositors AS (\r\n SELECT\r\n tx_id,\r\n SPLIT_PART(\r\n attribute_value,\r\n '/',\r\n 0\r\n ) AS depositor\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_key = 'acc_seq'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n {{ this }}\r\n)\r\n{% endif %}\r\n)\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n p.tx_id,\r\n tx_succeeded,\r\n d.depositor,\r\n p.proposal_id :: NUMBER as proposal_id,\r\n v.amount :: NUMBER as amount,\r\n v.currency,\r\n _inserted_timestamp\r\nFROM\r\n deposit_value v\r\n INNER JOIN proposal_ids p\r\n ON p.tx_id = v.tx_id\r\n INNER JOIN depositors d\r\n ON v.tx_id = d.tx_id\r\n LEFT OUTER JOIN {{ ref('silver__transactions') }}\r\n t\r\n ON v.tx_id = t.tx_id\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp >= (\r\n SELECT\r\n MAX(\r\n _inserted_timestamp\r\n )\r\n FROM\r\n {{ this }}\r\n )\r\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_id", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "merge", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_proposal_deposits"], "unique_id": "model.cosmos_models.silver__governance_proposal_deposits", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__governance_proposal_deposits.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.sql", "name": "silver__governance_proposal_deposits", "alias": "governance_proposal_deposits", "checksum": {"name": "sha256", "checksum": "9d43282b5250d054ffb2527b12300250c1dc2f8b6c03f571046565bfbd51a6eb"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__governance_proposal_deposits.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "tx_id", "incremental_strategy": "merge", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672753862.155132, "compiled_sql": "\n\nWITH\n\n\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n COSMOS_DEV.silver.governance_proposal_deposits\n),\n\n\nproposal_ids AS (\n SELECT\n tx_id,\n attribute_value AS proposal_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'proposal_id'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\ndeposit_value AS (\n SELECT\n tx_id,\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ) AS amount,\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))) AS currency\n FROM\n COSMOS_DEV.silver.msg_attributes\n m\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'amount'\n AND attribute_value IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\ndepositors AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS depositor\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n COSMOS_DEV.silver.governance_proposal_deposits\n)\n\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n d.depositor,\n p.proposal_id :: NUMBER as proposal_id,\n v.amount :: NUMBER as amount,\n v.currency,\n _inserted_timestamp\nFROM\n deposit_value v\n INNER JOIN proposal_ids p\n ON p.tx_id = v.tx_id\n INNER JOIN depositors d\n ON v.tx_id = d.tx_id\n LEFT OUTER JOIN COSMOS_DEV.silver.transactions\n t\n ON v.tx_id = t.tx_id\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n COSMOS_DEV.silver.governance_proposal_deposits\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_BLOCK_ID", "alias": "governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.155132, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178"}, "created_at": 1672753862.155132, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP", "alias": "governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.155132, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814"}, "created_at": 1672753862.155132, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_TX_ID.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_TX_ID", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.1708543, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124"}, "created_at": 1672753862.1708543, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED", "alias": "governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.1708543, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN", "alias": "governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884"}, "created_at": 1672753862.1708543, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_DEPOSITOR"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_DEPOSITOR.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_DEPOSITOR", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_DEPOSITOR.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.1708543, "compiled_sql": "\n \n \n\n\n\nselect DEPOSITOR\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere DEPOSITOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1"}, "created_at": 1672753862.1708543, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'DEPOSITOR'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12\") }}", "test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "cosmos1[0-9a-z]{38,38}", "column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12"}, "created_at": 1672753862.1708543, "compiled_sql": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(DEPOSITOR, 'cosmos1[0-9a-z]{38,38}', 1, 1)\n\n\n > 0\n as expression\n\n\n from COSMOS_DEV.silver.governance_proposal_deposits\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": [], "relation_name": null, "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_PROPOSAL_ID.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_PROPOSAL_ID", "alias": "governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.1864913, "compiled_sql": "\n \n \n\n\n\nselect PROPOSAL_ID\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018"}, "created_at": 1672753862.1864913, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_AMOUNT"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_AMOUNT.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_AMOUNT", "alias": "governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.1864913, "compiled_sql": "\n \n \n\n\n\nselect AMOUNT\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT", "alias": "governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30"}, "created_at": 1672753862.1864913, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "AMOUNT", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_CURRENCY"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_proposal_deposits_CURRENCY.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_CURRENCY", "alias": "governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_proposal_deposits_CURRENCY.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672753862.2021072, "compiled_sql": "\n \n \n\n\n\nselect CURRENCY\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere CURRENCY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR", "alias": "governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93"}, "created_at": 1672753862.2021072, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'CURRENCY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "CURRENCY", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP", "alias": "governance_proposal_deposits", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f"}, "created_at": 1672753862.2021072, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46\") }}", "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__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_proposal_deposits", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46"}, "created_at": 1672753862.2021072, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID"], "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194.sql", "original_file_path": "models\\silver\\silver__governance_proposal_deposits.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_proposal_deposits.yml\\dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194"}, "created_at": 1672753862.2021072, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID\n from COSMOS_DEV.silver.governance_proposal_deposits\n group by TX_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__governance_proposal_deposits"}, "model.cosmos_models.silver__governance_votes": {"raw_sql": "{{ config(\r\n materialized = 'incremental',\r\n unique_key = \"CONCAT_WS('-', tx_id, proposal_id, voter)\",\r\n incremental_strategy = 'delete+insert',\r\n cluster_by = ['block_timestamp::DATE'],\r\n) }}\r\n\r\nWITH max_index AS (\r\n\r\n SELECT\r\n tx_id,\r\n MAX(msg_index) AS max_idx\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'proposal_vote'\r\n AND attribute_key = 'option'\r\n GROUP BY tx_id\r\n),\r\nvote_options AS (\r\n SELECT\r\n m.tx_id,\r\n msg_index,\r\n CASE\r\n WHEN attribute_value :: STRING = 'VOTE_OPTION_YES' THEN 1\r\n WHEN attribute_value :: STRING = 'VOTE_OPTION_ABSTAIN' THEN 2\r\n WHEN attribute_value :: STRING = 'VOTE_OPTION_NO' THEN 3\r\n WHEN attribute_value :: STRING = 'VOTE_OPTION_NO_WITH_VETO' THEN 4\r\n ELSE TRY_PARSE_JSON(attribute_value) :option\r\n END AS vote_option,\r\n TRY_PARSE_JSON(attribute_value) :weight :: FLOAT AS vote_weight\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n m\r\n INNER JOIN max_index x\r\n ON m.tx_id = x.tx_id\r\n WHERE\r\n msg_type = 'proposal_vote'\r\n AND attribute_key = 'option'\r\n AND msg_index = x.max_idx\r\n AND vote_option IS NOT NULL\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\r\n{% endif %}\r\n),\r\nproposal_id AS (\r\n SELECT\r\n tx_id,\r\n msg_index,\r\n attribute_value AS proposal_id\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n msg_type = 'proposal_vote'\r\n AND attribute_key = 'proposal_id'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\r\n{% endif %}\r\n),\r\nvoter AS (\r\n SELECT\r\n tx_id,\r\n msg_index,\r\n attribute_value AS voter\r\n FROM\r\n {{ ref('silver__msg_attributes') }}\r\n WHERE\r\n attribute_key = 'sender'\r\n\r\n{% if is_incremental() %}\r\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\r\n{% endif %}\r\n)\r\nSELECT\r\n block_id,\r\n block_timestamp,\r\n o.tx_id,\r\n tx_succeeded,\r\n v.voter,\r\n p.proposal_id :: NUMBER AS proposal_id,\r\n vote_option :: NUMBER AS vote_option,\r\n vote_weight,\r\n _inserted_timestamp\r\nFROM\r\n vote_options o\r\n LEFT OUTER JOIN proposal_id p\r\n ON o.tx_id = p.tx_id\r\n AND o.msg_index = p.msg_index\r\n LEFT OUTER JOIN voter v\r\n ON o.tx_id = v.tx_id\r\n AND o.msg_index = v.msg_index - 1\r\n LEFT OUTER JOIN {{ ref('silver__transactions') }}\r\n t\r\n ON o.tx_id = t.tx_id\r\n\r\n{% if is_incremental() %}\r\nWHERE\r\n _inserted_timestamp :: DATE >= CURRENT_DATE - 2\r\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "CONCAT_WS('-', tx_id, proposal_id, voter)", "on_schema_change": "sync_all_columns", "grants": {}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "incremental_strategy": "delete+insert", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_votes"], "unique_id": "model.cosmos_models.silver__governance_votes", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "silver\\silver__governance_votes.sql", "original_file_path": "models\\silver\\silver__governance_votes.sql", "name": "silver__governance_votes", "alias": "governance_votes", "checksum": {"name": "sha256", "checksum": "3ff79c4f3d4269963d87a9da0062f26943d8079d44e1678d5772a2fd45e36e9f"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all votes on proposals.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "Address of the delegator that voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "cosmos_models://models\\silver\\silver__governance_votes.yml", "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "CONCAT_WS('-', tx_id, proposal_id, voter)", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1672755050.3036125, "compiled_sql": "\n\nWITH max_index AS (\n\n SELECT\n tx_id,\n MAX(msg_index) AS max_idx\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key = 'option'\n GROUP BY tx_id\n),\nvote_options AS (\n SELECT\n m.tx_id,\n msg_index,\n CASE\n WHEN attribute_value :: STRING = 'VOTE_OPTION_YES' THEN 1\n WHEN attribute_value :: STRING = 'VOTE_OPTION_ABSTAIN' THEN 2\n WHEN attribute_value :: STRING = 'VOTE_OPTION_NO' THEN 3\n WHEN attribute_value :: STRING = 'VOTE_OPTION_NO_WITH_VETO' THEN 4\n ELSE TRY_PARSE_JSON(attribute_value) :option\n END AS vote_option,\n TRY_PARSE_JSON(attribute_value) :weight :: FLOAT AS vote_weight\n FROM\n COSMOS_DEV.silver.msg_attributes\n m\n INNER JOIN max_index x\n ON m.tx_id = x.tx_id\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key = 'option'\n AND msg_index = x.max_idx\n AND vote_option IS NOT NULL\n\n\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\n\n),\nproposal_id AS (\n SELECT\n tx_id,\n msg_index,\n attribute_value AS proposal_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key = 'proposal_id'\n\n\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\n\n),\nvoter AS (\n SELECT\n tx_id,\n msg_index,\n attribute_value AS voter\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'sender'\n\n\nAND _inserted_timestamp :: DATE >= CURRENT_DATE - 2\n\n)\nSELECT\n block_id,\n block_timestamp,\n o.tx_id,\n tx_succeeded,\n v.voter,\n p.proposal_id :: NUMBER AS proposal_id,\n vote_option :: NUMBER AS vote_option,\n vote_weight,\n _inserted_timestamp\nFROM\n vote_options o\n LEFT OUTER JOIN proposal_id p\n ON o.tx_id = p.tx_id\n AND o.msg_index = p.msg_index\n LEFT OUTER JOIN voter v\n ON o.tx_id = v.tx_id\n AND o.msg_index = v.msg_index - 1\n LEFT OUTER JOIN COSMOS_DEV.silver.transactions\n t\n ON o.tx_id = t.tx_id\n\n\nWHERE\n _inserted_timestamp :: DATE >= CURRENT_DATE - 2\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_BLOCK_ID.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_BLOCK_ID", "alias": "governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3116117, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_ID\nfrom COSMOS_DEV.silver.governance_votes\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b"}, "created_at": 1672755050.3136122, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_BLOCK_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_BLOCK_TIMESTAMP", "alias": "governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.325613, "compiled_sql": "\n \n \n\n\n\nselect BLOCK_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_votes\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe"}, "created_at": 1672755050.3286135, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_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": [], "relation_name": null, "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_TX_ID.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_TX_ID", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3326125, "compiled_sql": "\n \n \n\n\n\nselect TX_ID\nfrom COSMOS_DEV.silver.governance_votes\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f"}, "created_at": 1672755050.3336124, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_TX_SUCCEEDED.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_TX_SUCCEEDED", "alias": "governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3399255, "compiled_sql": "\n \n \n\n\n\nselect TX_SUCCEEDED\nfrom COSMOS_DEV.silver.governance_votes\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN", "alias": "governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28"}, "created_at": 1672755050.3419254, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_VOTER"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_VOTER.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_VOTER", "alias": "governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_VOTER.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3459256, "compiled_sql": "\n \n \n\n\n\nselect VOTER\nfrom COSMOS_DEV.silver.governance_votes\nwhere VOTER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTER", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR", "alias": "governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540"}, "created_at": 1672755050.3469257, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOTER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTER", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_PROPOSAL_ID.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_PROPOSAL_ID", "alias": "governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3509252, "compiled_sql": "\n \n \n\n\n\nselect PROPOSAL_ID\nfrom COSMOS_DEV.silver.governance_votes\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8"}, "created_at": 1672755050.3539262, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_VOTE_OPTION"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes_VOTE_OPTION.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes_VOTE_OPTION", "alias": "governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes_VOTE_OPTION.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3589277, "compiled_sql": "\n \n \n\n\n\nselect VOTE_OPTION\nfrom COSMOS_DEV.silver.governance_votes\nwhere VOTE_OPTION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTE_OPTION", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee\") }}", "test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT", "alias": "governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee"}, "created_at": 1672755050.3609257, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOTE_OPTION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "VOTE_OPTION", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "not_null_silver__governance_votes__INSERTED_TIMESTAMP.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "not_null_silver__governance_votes__INSERTED_TIMESTAMP", "alias": "governance_votes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\not_null_silver__governance_votes__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1672755050.3649256, "compiled_sql": "\n \n \n\n\n\nselect _INSERTED_TIMESTAMP\nfrom COSMOS_DEV.silver.governance_votes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": {"raw_sql": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5\") }}", "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__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_votes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5"}, "created_at": 1672755050.3659253, "compiled_sql": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \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": [], "relation_name": null, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER.7881155285": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7fc92838a3fa30b0b77f95f5ed1320d8\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID", "PROPOSAL_ID", "VOTER"], "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7fc92838a3fa30b0b77f95f5ed1320d8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER.7881155285", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "dbt_utils_unique_combination_o_7fc92838a3fa30b0b77f95f5ed1320d8.sql", "original_file_path": "models\\silver\\silver__governance_votes.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target\\compiled\\cosmos_models\\models\\silver\\silver__governance_votes.yml\\dbt_utils_unique_combination_o_7fc92838a3fa30b0b77f95f5ed1320d8.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7fc92838a3fa30b0b77f95f5ed1320d8"}, "created_at": 1672755050.370925, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID, PROPOSAL_ID, VOTER\n from COSMOS_DEV.silver.governance_votes\n group by TX_ID, PROPOSAL_ID, VOTER\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.silver__governance_votes"}}, "sources": {"source.cosmos_models.bronze_streamline.blocks": {"fqn": ["cosmos_models", "bronze_streamline", "blocks"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "models\\sources.yml", "original_file_path": "models\\sources.yml", "name": "blocks", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks", "resource_type": "source", "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.COSMOS.blocks", "created_at": 1672332550.4123373}, "source.cosmos_models.bronze_streamline.tx_search": {"fqn": ["cosmos_models", "bronze_streamline", "tx_search"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.tx_search", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "models\\sources.yml", "original_file_path": "models\\sources.yml", "name": "tx_search", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "tx_search", "resource_type": "source", "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.COSMOS.tx_search", "created_at": 1672332550.4123373}, "source.cosmos_models.bronze_streamline.validators": {"fqn": ["cosmos_models", "bronze_streamline", "validators"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "models\\sources.yml", "original_file_path": "models\\sources.yml", "name": "validators", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "validators", "resource_type": "source", "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.COSMOS.validators", "created_at": 1672332550.4123373}, "source.cosmos_models.osmo.asset_metadata": {"fqn": ["cosmos_models", "osmo", "asset_metadata"], "database": "osmosis", "schema": "silver", "unique_id": "source.cosmos_models.osmo.asset_metadata", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "models\\sources.yml", "original_file_path": "models\\sources.yml", "name": "asset_metadata", "source_name": "osmo", "source_description": "", "loader": "", "identifier": "asset_metadata", "resource_type": "source", "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": "osmosis.silver.asset_metadata", "created_at": 1672332550.4123373}}, "macros": {"macro.cosmos_models.create_sps": {"unique_id": "macro.cosmos_models.create_sps", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\create_sps.sql", "original_file_path": "macros\\create_sps.sql", "name": "create_sps", "macro_sql": "{% macro create_sps() %}\r\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\r\n {% if target.database == 'COSMOS' %}\r\n CREATE schema IF NOT EXISTS _internal;\r\n{{ sp_create_prod_clone('_internal') }};\r\n {% endif %}\r\n {% endif %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.create_udfs": {"unique_id": "macro.cosmos_models.create_udfs", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\create_udfs.sql", "original_file_path": "macros\\create_udfs.sql", "name": "create_udfs", "macro_sql": "{% macro create_udfs() %}\r\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\r\n {% set sql %}\r\n CREATE schema if NOT EXISTS silver;\r\n{{ create_udtf_get_base_table(\r\n schema = \"streamline\"\r\n ) }}\r\n\r\n {% endset %}\r\n {% do run_query(sql) %}\r\n {% set sql %}\r\n {{ create_udf_get_cosmos_blocks() }}\r\n {{ create_udf_get_cosmos_transactions() }}\r\n {{ create_udf_get_cosmos_validators() }}\r\n {{ create_udf_get_cosmos_chainhead() }}\r\n\r\n {% endset %}\r\n {% do run_query(sql) %}\r\n {% endif %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.create_udtf_get_base_table", "macro.dbt.run_query", "macro.cosmos_models.create_udf_get_cosmos_blocks", "macro.cosmos_models.create_udf_get_cosmos_transactions", "macro.cosmos_models.create_udf_get_cosmos_validators", "macro.cosmos_models.create_udf_get_cosmos_chainhead"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.generate_schema_name": {"unique_id": "macro.cosmos_models.generate_schema_name", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\custom_naming_macros.sql", "original_file_path": "macros\\custom_naming_macros.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\r\n {% set node_name = node.name %}\r\n {% set split_name = node_name.split('__') %}\r\n {{ split_name[0] | trim }}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.generate_alias_name": {"unique_id": "macro.cosmos_models.generate_alias_name", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\custom_naming_macros.sql", "original_file_path": "macros\\custom_naming_macros.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\r\n {% set node_name = node.name %}\r\n {% set split_name = node_name.split('__') %}\r\n {{ split_name[1] | trim }}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.set_query_tag": {"unique_id": "macro.cosmos_models.set_query_tag", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\custom_query_tag.sql", "original_file_path": "macros\\custom_query_tag.sql", "name": "set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\r\n {% set new_json = {\"repo\":project_name, \"object\":this.table, \"profile\":target.profile_name, \"env\":target.name, \"existing_tag\":get_current_query_tag() } %}\r\n{% set new_query_tag = tojson(new_json) | as_text %}\r\n {% if new_query_tag %}\r\n {% set original_query_tag = get_current_query_tag() %}\r\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\r\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\r\n {{ return(original_query_tag)}}\r\n {% endif %}\r\n {{ return(none)}}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.run_sp_create_prod_clone": {"unique_id": "macro.cosmos_models.run_sp_create_prod_clone", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\run_sp_create_prod_clone.sql", "original_file_path": "macros\\run_sp_create_prod_clone.sql", "name": "run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\r\n{% set clone_query %}\r\ncall cosmos._internal.create_prod_clone('cosmos', 'cosmos_dev', 'internal_dev');\r\n{% endset %}\r\n\r\n{% do run_query(clone_query) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.sp_create_prod_clone": {"unique_id": "macro.cosmos_models.sp_create_prod_clone", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\sp_create_prod_clone.sql", "original_file_path": "macros\\sp_create_prod_clone.sql", "name": "sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\r\n\r\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\r\nreturns boolean\r\nlanguage javascript\r\nexecute as caller\r\nas\r\n$$\r\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\r\n try {\r\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\r\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\r\n snowflake.execute({sqlText: `GRANT USAGE ON DATABASE ${DESTINATION_DB_NAME} TO AWS_LAMBDA_COSMOS_API`}); \r\n\r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \r\n snowflake.execute({sqlText: `GRANT USAGE ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE AWS_LAMBDA_COSMOS_API;`}); \r\n\r\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\r\n\r\n snowflake.execute({sqlText: `COMMIT;`});\r\n } catch (err) {\r\n snowflake.execute({sqlText: `ROLLBACK;`});\r\n throw(err);\r\n }\r\n\r\n return true\r\n$$\r\n\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.if_data_call_function": {"unique_id": "macro.cosmos_models.if_data_call_function", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\utils.sql", "original_file_path": "macros\\utils.sql", "name": "if_data_call_function", "macro_sql": "{% macro if_data_call_function(\r\n func,\r\n target\r\n ) %}\r\n {% if var(\r\n \"STREAMLINE_INVOKE_STREAMS\"\r\n ) %}\r\n {% if execute %}\r\n {{ log(\r\n \"Running macro `if_data_call_function`: Calling udf \" ~ func ~ \" on \" ~ target,\r\n True\r\n ) }}\r\n {% endif %}\r\n SELECT\r\n {{ func }}\r\n WHERE\r\n EXISTS(\r\n SELECT\r\n 1\r\n FROM\r\n {{ target }}\r\n LIMIT\r\n 1\r\n )\r\n {% else %}\r\n {% if execute %}\r\n {{ log(\r\n \"Running macro `if_data_call_function`: NOOP\",\r\n False\r\n ) }}\r\n {% endif %}\r\n SELECT\r\n NULL\r\n {% endif %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.create_aws_cosmos_api": {"unique_id": "macro.cosmos_models.create_aws_cosmos_api", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\api_integrations.sql", "original_file_path": "macros\\streamline\\api_integrations.sql", "name": "create_aws_cosmos_api", "macro_sql": "{% macro create_aws_cosmos_api() %}\r\n {% if target.name == \"prod\" %}\r\n {% set sql %}\r\n CREATE api integration IF NOT EXISTS aws_cosmos_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::490041342817:role/snowflake-api-cosmos' api_allowed_prefixes = (\r\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/',\r\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/'\r\n ) enabled = TRUE;\r\n{% endset %}\r\n {% do run_query(sql) %}\r\n {% endif %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.create_udtf_get_base_table": {"unique_id": "macro.cosmos_models.create_udtf_get_base_table", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\get_base_table_udtf.sql", "original_file_path": "macros\\streamline\\get_base_table_udtf.sql", "name": "create_udtf_get_base_table", "macro_sql": "{% macro create_udtf_get_base_table(schema) %}\r\n CREATE FUNCTION IF NOT EXISTS {{ schema }}.udtf_get_base_table(\r\n max_height INTEGER\r\n ) returns TABLE (\r\n height NUMBER\r\n ) AS $$ WITH base AS (\r\n SELECT\r\n ROW_NUMBER() over (\r\n ORDER BY\r\n SEQ4()\r\n ) AS id\r\n FROM\r\n TABLE(GENERATOR(rowcount => 100000000))\r\n )\r\nSELECT\r\n id AS height\r\nFROM\r\n base\r\nWHERE\r\n id <= max_height $$;\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.create_sp_get_cosmos_blocks_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_blocks_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_blocks_history.sql", "original_file_path": "macros\\streamline\\sp_get_blocks_history.sql", "name": "create_sp_get_cosmos_blocks_history", "macro_sql": "{% macro create_sp_get_cosmos_blocks_history() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_blocks_history() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__blocks_history') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_blocks()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.1573565}, "macro.cosmos_models.create_sp_get_cosmos_blocks_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_blocks_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_blocks_realtime.sql", "original_file_path": "macros\\streamline\\sp_get_blocks_realtime.sql", "name": "create_sp_get_cosmos_blocks_realtime", "macro_sql": "{% macro create_sp_get_cosmos_blocks_realtime() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_blocks_realtime() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__blocks_realtime') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_blocks()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_sp_get_cosmos_transactions_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_transactions_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_transactions_history.sql", "original_file_path": "macros\\streamline\\sp_get_transactions_history.sql", "name": "create_sp_get_cosmos_transactions_history", "macro_sql": "{% macro create_sp_get_cosmos_transactions_history() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_transactions_history() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__transactions_history') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_transactions()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_sp_get_cosmos_transactions_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_transactions_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_transactions_realtime.sql", "original_file_path": "macros\\streamline\\sp_get_transactions_realtime.sql", "name": "create_sp_get_cosmos_transactions_realtime", "macro_sql": "{% macro create_sp_get_cosmos_transactions_realtime() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_transactions_realtime() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__transactions_realtime') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_transactions()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_sp_get_cosmos_validators_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_validators_history", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_validators_history.sql", "original_file_path": "macros\\streamline\\sp_get_validators_history.sql", "name": "create_sp_get_cosmos_validators_history", "macro_sql": "{% macro create_sp_get_cosmos_validators_history() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_validators_history() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__validators_history') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_validators()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_sp_get_cosmos_validators_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_validators_realtime", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\sp_get_validators_realtime.sql", "original_file_path": "macros\\streamline\\sp_get_validators_realtime.sql", "name": "create_sp_get_cosmos_validators_realtime", "macro_sql": "{% macro create_sp_get_cosmos_validators_realtime() %}\r\n {% set sql %}\r\n CREATE\r\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_validators_realtime() returns variant LANGUAGE SQL AS $$\r\nDECLARE\r\n RESULT variant;\r\nrow_cnt INTEGER;\r\nBEGIN\r\n row_cnt:= (\r\n SELECT\r\n COUNT(1)\r\n FROM\r\n {{ ref('streamline__validators_realtime') }}\r\n );\r\nif (\r\n row_cnt > 0\r\n ) THEN RESULT:= (\r\n SELECT\r\n streamline.udf_get_cosmos_validators()\r\n );\r\n ELSE RESULT:= NULL;\r\nEND if;\r\nRETURN RESULT;\r\nEND;$$ {% endset %}\r\n{% do run_query(sql) %}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_udf_get_cosmos_blocks": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_blocks", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\streamline_udfs.sql", "original_file_path": "macros\\streamline\\streamline_udfs.sql", "name": "create_udf_get_cosmos_blocks", "macro_sql": "{% macro create_udf_get_cosmos_blocks() %}\r\n CREATE\r\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_blocks(\r\n json variant\r\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\r\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_blocks'\r\n {% else %}\r\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_blocks'\r\n {%- endif %};\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_udf_get_cosmos_transactions": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_transactions", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\streamline_udfs.sql", "original_file_path": "macros\\streamline\\streamline_udfs.sql", "name": "create_udf_get_cosmos_transactions", "macro_sql": "{% macro create_udf_get_cosmos_transactions() %}\r\n CREATE\r\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_transactions(\r\n json variant\r\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\r\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_transactions'\r\n {% else %}\r\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_transactions'\r\n {%- endif %};\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_udf_get_cosmos_validators": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_validators", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\streamline_udfs.sql", "original_file_path": "macros\\streamline\\streamline_udfs.sql", "name": "create_udf_get_cosmos_validators", "macro_sql": "{% macro create_udf_get_cosmos_validators() %}\r\n CREATE\r\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_validators(\r\n json variant\r\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\r\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_validators'\r\n {% else %}\r\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_validators'\r\n {%- endif %};\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.create_udf_get_cosmos_chainhead": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_chainhead", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\streamline\\streamline_udfs.sql", "original_file_path": "macros\\streamline\\streamline_udfs.sql", "name": "create_udf_get_cosmos_chainhead", "macro_sql": "{% macro create_udf_get_cosmos_chainhead() %}\r\n CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_get_cosmos_chainhead() returns variant api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\r\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/get_cosmos_chainhead'\r\n {% else %}\r\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/get_cosmos_chainhead'\r\n {%- endif %};\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.test_sequence_gaps": {"unique_id": "macro.cosmos_models.test_sequence_gaps", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\tests\\sequence_gaps.sql", "original_file_path": "macros\\tests\\sequence_gaps.sql", "name": "test_sequence_gaps", "macro_sql": "{% test sequence_gaps(\r\n model,\r\n partition_by,\r\n column_name\r\n) %}\r\n{%- set partition_sql = partition_by | join(\", \") -%}\r\n{%- set previous_column = \"prev_\" ~ column_name -%}\r\nWITH source AS (\r\n SELECT\r\n {{ partition_sql + \",\" if partition_sql }}\r\n {{ column_name }},\r\n LAG(\r\n {{ column_name }},\r\n 1\r\n ) over (\r\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\r\n ORDER BY\r\n {{ column_name }} ASC\r\n ) AS {{ previous_column }}\r\n FROM\r\n {{ model }}\r\n)\r\nSELECT\r\n {{ partition_sql + \",\" if partition_sql }}\r\n {{ previous_column }},\r\n {{ column_name }},\r\n {{ column_name }} - {{ previous_column }}\r\n - 1 AS gap\r\nFROM\r\n source\r\nWHERE\r\n {{ column_name }} - {{ previous_column }} <> 1\r\nORDER BY\r\n gap DESC {% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.cosmos_models.tx_gaps": {"unique_id": "macro.cosmos_models.tx_gaps", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "macros\\tests\\tx_gaps.sql", "original_file_path": "macros\\tests\\tx_gaps.sql", "name": "tx_gaps", "macro_sql": "{% macro tx_gaps(\r\n model\r\n ) %}\r\n WITH block_base AS (\r\n SELECT\r\n block_number,\r\n tx_count\r\n FROM\r\n {{ ref('silver__blocks') }}\r\n ),\r\n model_name AS (\r\n SELECT\r\n block_number,\r\n COUNT(\r\n DISTINCT tx_hash\r\n ) AS model_tx_count\r\n FROM\r\n {{ model }}\r\n GROUP BY\r\n block_number\r\n )\r\nSELECT\r\n block_base.block_number,\r\n tx_count,\r\n model_name.block_number AS model_block_number,\r\n model_tx_count\r\nFROM\r\n block_base\r\n LEFT JOIN model_name\r\n ON block_base.block_number = model_name.block_number\r\nWHERE\r\n tx_count <> model_tx_count\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.173512}, "macro.dbt_snowflake.snowflake__create_table_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, sql) -%}\n {%- set transient = config.get('transient', default=true) -%}\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 {% if temporary -%}\n temporary\n {%- elif transient -%}\n transient\n {%- endif %} table {{ relation }} {% if copy_grants and not temporary -%} copy grants {%- endif %} as\n (\n {%- if cluster_by_string is not none -%}\n select * from(\n {{ sql }}\n ) order by ({{ cluster_by_string }})\n {%- else -%}\n {{ sql }}\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{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.190437}, "macro.dbt_snowflake.get_column_comment_sql": {"unique_id": "macro.dbt_snowflake.get_column_comment_sql", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.190437}, "macro.dbt_snowflake.get_persist_docs_column_list": {"unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.190437}, "macro.dbt_snowflake.snowflake__create_view_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\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 %} 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 {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2061307}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__list_schemas": {"unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation) %}\n {%- set sql -%}\n show terse objects in {{ schema_relation }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in schema {{ schema_relation }}! dbt can only get\n information about schemas with fewer than {{ maximum }} objects.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {%- do return(result) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__current_timestamp": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__rename_relation": {"unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__alter_column_type": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n comment on {{ relation.type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.get_current_query_tag": {"unique_id": "macro.dbt_snowflake.get_current_query_tag", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.set_query_tag": {"unique_id": "macro.dbt_snowflake.set_query_tag", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__set_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.unset_query_tag": {"unique_id": "macro.dbt_snowflake.unset_query_tag", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__truncate_relation": {"unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__copy_grants": {"unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\adapters.sql", "original_file_path": "macros\\adapters.sql", "name": "snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.snowflake__get_catalog": {"unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\catalog.sql", "original_file_path": "macros\\catalog.sql", "name": "snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n {% set query %}\n with tables as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n table_type 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\n from {{ information_schema }}.tables\n\n ),\n\n columns as (\n\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\n from {{ information_schema }}.columns\n )\n\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n where (\n {%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n order by \"column_index\"\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2067873}, "macro.dbt_snowflake.dbt_snowflake_validate_get_incremental_strategy": {"unique_id": "macro.dbt_snowflake.dbt_snowflake_validate_get_incremental_strategy", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\incremental.sql", "original_file_path": "macros\\materializations\\incremental.sql", "name": "dbt_snowflake_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_snowflake_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'delete+insert'\n {%- endset %}\n {% if strategy not in ['merge', 'delete+insert'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.dbt_snowflake_get_incremental_sql": {"unique_id": "macro.dbt_snowflake.dbt_snowflake_get_incremental_sql", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\incremental.sql", "original_file_path": "macros\\materializations\\incremental.sql", "name": "dbt_snowflake_get_incremental_sql", "macro_sql": "{% macro dbt_snowflake_get_incremental_sql(strategy, tmp_relation, target_relation, unique_key, dest_columns) %}\n {% if strategy == 'merge' %}\n {% do return(get_merge_sql(target_relation, tmp_relation, unique_key, dest_columns)) %}\n {% elif strategy == 'delete+insert' %}\n {% do return(get_delete_insert_merge_sql(target_relation, tmp_relation, unique_key, dest_columns)) %}\n {% else %}\n {% do exceptions.raise_compiler_error('invalid strategy: ' ~ strategy) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql", "macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\incremental.sql", "original_file_path": "macros\\materializations\\incremental.sql", "name": "materialization_incremental_snowflake", "macro_sql": "{% materialization incremental, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {% set target_relation = this %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(this) %}\n\n {% set grant_config = config.get('grants') %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_snowflake_validate_get_incremental_strategy(config) -%}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\n\n {% elif full_refresh_mode %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n\n {% else %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\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 {% set build_sql = dbt_snowflake_get_incremental_sql(strategy, tmp_relation, target_relation, unique_key, dest_columns) %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {%- endcall -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.set_query_tag", "macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_snowflake.dbt_snowflake_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt_snowflake.dbt_snowflake_get_incremental_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\merge.sql", "original_file_path": "macros\\materializations\\merge.sql", "name": "snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, 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, predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\merge.sql", "original_file_path": "macros\\materializations\\merge.sql", "name": "snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\merge.sql", "original_file_path": "macros\\materializations\\merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\seed.sql", "original_file_path": "macros\\materializations\\seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.materialization_seed_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\seed.sql", "original_file_path": "macros\\materializations\\seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.set_query_tag", "macro.dbt.materialization_seed_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2230012}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\snapshot.sql", "original_file_path": "macros\\materializations\\snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.set_query_tag", "macro.dbt.materialization_snapshot_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.239153}, "macro.dbt_snowflake.materialization_table_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\table.sql", "original_file_path": "macros\\materializations\\table.sql", "name": "materialization_table_snowflake", "macro_sql": "{% materialization table, adapter='snowflake' %}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set identifier = model['alias'] -%}\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 --build model\n {% call statement('main') -%}\n {{ create_table_as(false, target_relation, sql) }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.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}, "patch_path": null, "arguments": [], "created_at": 1672332548.239747}, "macro.dbt_snowflake.materialization_view_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\materializations\\view.sql", "original_file_path": "macros\\materializations\\view.sql", "name": "materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = 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 return(to_return) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.set_query_tag", "macro.dbt.create_or_replace_view", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt_snowflake.snowflake__bool_or": {"unique_id": "macro.dbt_snowflake.snowflake__bool_or", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\utils\\bool_or.sql", "original_file_path": "macros\\utils\\bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\utils\\escape_single_quotes.sql", "original_file_path": "macros\\utils\\escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt_snowflake.snowflake__right": {"unique_id": "macro.dbt_snowflake.snowflake__right", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\utils\\right.sql", "original_file_path": "macros\\utils\\right.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt_snowflake.snowflake__safe_cast": {"unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "package_name": "dbt_snowflake", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\snowflake", "path": "macros\\utils\\safe_cast.sql", "original_file_path": "macros\\utils\\safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2437646}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2542777}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2542777}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.255911}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\apply_grants.sql", "original_file_path": "macros\\adapters\\apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\columns.sql", "original_file_path": "macros\\adapters\\columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\freshness.sql", "original_file_path": "macros\\adapters\\freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2564223}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\freshness.sql", "original_file_path": "macros\\adapters\\freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2721944}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\freshness.sql", "original_file_path": "macros\\adapters\\freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2729266}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\freshness.sql", "original_file_path": "macros\\adapters\\freshness.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\indexes.sql", "original_file_path": "macros\\adapters\\indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\indexes.sql", "original_file_path": "macros\\adapters\\indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\indexes.sql", "original_file_path": "macros\\adapters\\indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\indexes.sql", "original_file_path": "macros\\adapters\\indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\metadata.sql", "original_file_path": "macros\\adapters\\metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\persist_docs.sql", "original_file_path": "macros\\adapters\\persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2733493}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\relation.sql", "original_file_path": "macros\\adapters\\relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\schema.sql", "original_file_path": "macros\\adapters\\schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\schema.sql", "original_file_path": "macros\\adapters\\schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\schema.sql", "original_file_path": "macros\\adapters\\schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\adapters\\schema.sql", "original_file_path": "macros\\adapters\\schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.2897336}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\datetime.sql", "original_file_path": "macros\\etc\\datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\datetime.sql", "original_file_path": "macros\\etc\\datetime.sql", "name": "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 Partiton 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\datetime.sql", "original_file_path": "macros\\etc\\datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\datetime.sql", "original_file_path": "macros\\etc\\datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\statement.sql", "original_file_path": "macros\\etc\\statement.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\statement.sql", "original_file_path": "macros\\etc\\statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\etc\\statement.sql", "original_file_path": "macros\\etc\\statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\generic_test_sql\\accepted_values.sql", "original_file_path": "macros\\generic_test_sql\\accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\generic_test_sql\\not_null.sql", "original_file_path": "macros\\generic_test_sql\\not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\generic_test_sql\\relationships.sql", "original_file_path": "macros\\generic_test_sql\\relationships.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\generic_test_sql\\unique.sql", "original_file_path": "macros\\generic_test_sql\\unique.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_alias.sql", "original_file_path": "macros\\get_custom_name\\get_custom_alias.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.305847}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_alias.sql", "original_file_path": "macros\\get_custom_name\\get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_database.sql", "original_file_path": "macros\\get_custom_name\\get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_database.sql", "original_file_path": "macros\\get_custom_name\\get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_schema.sql", "original_file_path": "macros\\get_custom_name\\get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_schema.sql", "original_file_path": "macros\\get_custom_name\\get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\get_custom_name\\get_custom_schema.sql", "original_file_path": "macros\\get_custom_name\\get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\configs.sql", "original_file_path": "macros\\materializations\\configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\configs.sql", "original_file_path": "macros\\materializations\\configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\configs.sql", "original_file_path": "macros\\materializations\\configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\hooks.sql", "original_file_path": "macros\\materializations\\hooks.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\hooks.sql", "original_file_path": "macros\\materializations\\hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\hooks.sql", "original_file_path": "macros\\materializations\\hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\hooks.sql", "original_file_path": "macros\\materializations\\hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\hooks.sql", "original_file_path": "macros\\materializations\\hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "original_file_path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "original_file_path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "original_file_path": "macros\\materializations\\models\\incremental\\column_helpers.sql", "name": "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 %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3217926}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\incremental.sql", "original_file_path": "macros\\materializations\\models\\incremental\\incremental.sql", "name": "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 {% set build_sql = get_delete_insert_merge_sql(target_relation, temp_relation, unique_key, dest_columns) %}\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 %}", "resource_type": "macro", "tags": [], "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.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3373752}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\is_incremental.sql", "original_file_path": "macros\\materializations\\models\\incremental\\is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3373752}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\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 );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\merge.sql", "original_file_path": "macros\\materializations\\models\\incremental\\merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3439794}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "original_file_path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "original_file_path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "original_file_path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "original_file_path": "macros\\materializations\\models\\incremental\\on_schema_change.sql", "name": "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 {% 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\table\\create_table_as.sql", "original_file_path": "macros\\materializations\\models\\table\\create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\table\\create_table_as.sql", "original_file_path": "macros\\materializations\\models\\table\\create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\table\\create_table_as.sql", "original_file_path": "macros\\materializations\\models\\table\\create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\table\\create_table_as.sql", "original_file_path": "macros\\materializations\\models\\table\\create_table_as.sql", "name": "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 as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\table\\table.sql", "original_file_path": "macros\\materializations\\models\\table\\table.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\create_or_replace_view.sql", "original_file_path": "macros\\materializations\\models\\view\\create_or_replace_view.sql", "name": "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=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.3535757}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\create_view_as.sql", "original_file_path": "macros\\materializations\\models\\view\\create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\create_view_as.sql", "original_file_path": "macros\\materializations\\models\\view\\create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\create_view_as.sql", "original_file_path": "macros\\materializations\\models\\view\\create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\create_view_as.sql", "original_file_path": "macros\\materializations\\models\\view\\create_view_as.sql", "name": "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 }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\helpers.sql", "original_file_path": "macros\\materializations\\models\\view\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\helpers.sql", "original_file_path": "macros\\materializations\\models\\view\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\models\\view\\view.sql", "original_file_path": "macros\\materializations\\models\\view\\view.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.369302}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\helpers.sql", "original_file_path": "macros\\materializations\\seeds\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\seeds\\seed.sql", "original_file_path": "macros\\materializations\\seeds\\seed.sql", "name": "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 comparision 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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\helpers.sql", "original_file_path": "macros\\materializations\\snapshots\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.3849244}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\snapshot.sql", "original_file_path": "macros\\materializations\\snapshots\\snapshot.sql", "name": "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_sql']) %}\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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\snapshot_merge.sql", "original_file_path": "macros\\materializations\\snapshots\\snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\snapshot_merge.sql", "original_file_path": "macros\\materializations\\snapshots\\snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4005487}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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_sql']) -%}\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 select {{ check_cols_config | join(', ') }} from ({{ node['compiled_sql'] }}) 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\snapshots\\strategies.sql", "original_file_path": "macros\\materializations\\snapshots\\strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\tests\\helpers.sql", "original_file_path": "macros\\materializations\\tests\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\tests\\helpers.sql", "original_file_path": "macros\\materializations\\tests\\helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\tests\\test.sql", "original_file_path": "macros\\materializations\\tests\\test.sql", "name": "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 {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\tests\\where_subquery.sql", "original_file_path": "macros\\materializations\\tests\\where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\materializations\\tests\\where_subquery.sql", "original_file_path": "macros\\materializations\\tests\\where_subquery.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\any_value.sql", "original_file_path": "macros\\utils\\any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\any_value.sql", "original_file_path": "macros\\utils\\any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\bool_or.sql", "original_file_path": "macros\\utils\\bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\bool_or.sql", "original_file_path": "macros\\utils\\bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\cast_bool_to_text.sql", "original_file_path": "macros\\utils\\cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\cast_bool_to_text.sql", "original_file_path": "macros\\utils\\cast_bool_to_text.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\concat.sql", "original_file_path": "macros\\utils\\concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4161797}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\concat.sql", "original_file_path": "macros\\utils\\concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\data_types.sql", "original_file_path": "macros\\utils\\data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\dateadd.sql", "original_file_path": "macros\\utils\\dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\dateadd.sql", "original_file_path": "macros\\utils\\dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\datediff.sql", "original_file_path": "macros\\utils\\datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\datediff.sql", "original_file_path": "macros\\utils\\datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\date_trunc.sql", "original_file_path": "macros\\utils\\date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\date_trunc.sql", "original_file_path": "macros\\utils\\date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\escape_single_quotes.sql", "original_file_path": "macros\\utils\\escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\escape_single_quotes.sql", "original_file_path": "macros\\utils\\escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\except.sql", "original_file_path": "macros\\utils\\except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\except.sql", "original_file_path": "macros\\utils\\except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\hash.sql", "original_file_path": "macros\\utils\\hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\hash.sql", "original_file_path": "macros\\utils\\hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\intersect.sql", "original_file_path": "macros\\utils\\intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\intersect.sql", "original_file_path": "macros\\utils\\intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\last_day.sql", "original_file_path": "macros\\utils\\last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4317095}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\last_day.sql", "original_file_path": "macros\\utils\\last_day.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\last_day.sql", "original_file_path": "macros\\utils\\last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\length.sql", "original_file_path": "macros\\utils\\length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\length.sql", "original_file_path": "macros\\utils\\length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\listagg.sql", "original_file_path": "macros\\utils\\listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\listagg.sql", "original_file_path": "macros\\utils\\listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4443138}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\literal.sql", "original_file_path": "macros\\utils\\literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.447827}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\literal.sql", "original_file_path": "macros\\utils\\literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.447827}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\position.sql", "original_file_path": "macros\\utils\\position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.447827}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\position.sql", "original_file_path": "macros\\utils\\position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.447827}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\replace.sql", "original_file_path": "macros\\utils\\replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4496343}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\replace.sql", "original_file_path": "macros\\utils\\replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4496343}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\right.sql", "original_file_path": "macros\\utils\\right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.450737}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\right.sql", "original_file_path": "macros\\utils\\right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.450737}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\safe_cast.sql", "original_file_path": "macros\\utils\\safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.451843}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\safe_cast.sql", "original_file_path": "macros\\utils\\safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.451843}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\split_part.sql", "original_file_path": "macros\\utils\\split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4529476}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\split_part.sql", "original_file_path": "macros\\utils\\split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4529476}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "macros\\utils\\split_part.sql", "original_file_path": "macros\\utils\\split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4540606}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "tests\\generic\\builtin.sql", "original_file_path": "tests\\generic\\builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4793308}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "tests\\generic\\builtin.sql", "original_file_path": "tests\\generic\\builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4793308}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "tests\\generic\\builtin.sql", "original_file_path": "tests\\generic\\builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4793308}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "tests\\generic\\builtin.sql", "original_file_path": "tests\\generic\\builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4793308}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_base_dates.sql", "original_file_path": "macros\\get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.4793308}, "macro.dbt_date.default__get_base_dates": {"unique_id": "macro.dbt_date.default__get_base_dates", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_base_dates.sql", "original_file_path": "macros\\get_base_dates.sql", "name": "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 \" ~ type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = 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 {{ type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.49494}, "macro.dbt_date.bigquery__get_base_dates": {"unique_id": "macro.dbt_date.bigquery__get_base_dates", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_base_dates.sql", "original_file_path": "macros\\get_base_dates.sql", "name": "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 = 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 {{ type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.49494}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_date_dimension.sql", "original_file_path": "macros\\get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.49494}, "macro.dbt_date.default__get_date_dimension": {"unique_id": "macro.dbt_date.default__get_date_dimension", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_date_dimension.sql", "original_file_path": "macros\\get_date_dimension.sql", "name": "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({{ dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ 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 {{ 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({{ 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({{ 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 {{ type_int() }}) as quarter_of_year,\n cast({{ 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 {{ type_int() }}) as year_number,\n cast({{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.49494}, "macro.dbt_date.postgres__get_date_dimension": {"unique_id": "macro.dbt_date.postgres__get_date_dimension", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\get_date_dimension.sql", "original_file_path": "macros\\get_date_dimension.sql", "name": "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({{ dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ 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 {{ 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({{ 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({{ 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 {{ type_int() }}) as quarter_of_year,\n cast({{ 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({{dateadd('day', '-1', dateadd('month', '3', date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ type_int() }}) as year_number,\n cast({{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt_utils.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_utils.type_int", "macro.dbt_date.month_name", "macro.dbt_utils.date_trunc", "macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\convert_timezone.sql", "original_file_path": "macros\\calendar_date\\convert_timezone.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\date_part.sql", "original_file_path": "macros\\calendar_date\\date_part.sql", "name": "date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\date_part.sql", "original_file_path": "macros\\calendar_date\\date_part.sql", "name": "default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\date_part.sql", "original_file_path": "macros\\calendar_date\\date_part.sql", "name": "bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_name.sql", "original_file_path": "macros\\calendar_date\\day_name.sql", "name": "day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_name.sql", "original_file_path": "macros\\calendar_date\\day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_name.sql", "original_file_path": "macros\\calendar_date\\day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_name.sql", "original_file_path": "macros\\calendar_date\\day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_name.sql", "original_file_path": "macros\\calendar_date\\day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_month.sql", "original_file_path": "macros\\calendar_date\\day_of_month.sql", "name": "day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.redshift__day_of_month": {"unique_id": "macro.dbt_date.redshift__day_of_month", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_month.sql", "original_file_path": "macros\\calendar_date\\day_of_month.sql", "name": "redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.default__day_of_week": {"unique_id": "macro.dbt_date.default__day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.snowflake__day_of_week": {"unique_id": "macro.dbt_date.snowflake__day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.bigquery__day_of_week": {"unique_id": "macro.dbt_date.bigquery__day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.postgres__day_of_week": {"unique_id": "macro.dbt_date.postgres__day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "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 {{ 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 {{ type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.redshift__day_of_week": {"unique_id": "macro.dbt_date.redshift__day_of_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_week.sql", "original_file_path": "macros\\calendar_date\\day_of_week.sql", "name": "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 {{ type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_year.sql", "original_file_path": "macros\\calendar_date\\day_of_year.sql", "name": "day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.default__day_of_year": {"unique_id": "macro.dbt_date.default__day_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_year.sql", "original_file_path": "macros\\calendar_date\\day_of_year.sql", "name": "default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.51058}, "macro.dbt_date.postgres__day_of_year": {"unique_id": "macro.dbt_date.postgres__day_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_year.sql", "original_file_path": "macros\\calendar_date\\day_of_year.sql", "name": "postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.redshift__day_of_year": {"unique_id": "macro.dbt_date.redshift__day_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\day_of_year.sql", "original_file_path": "macros\\calendar_date\\day_of_year.sql", "name": "redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\from_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\from_unixtimestamp.sql", "name": "from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\from_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\from_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\from_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\from_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_end.sql", "original_file_path": "macros\\calendar_date\\iso_week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_end.sql", "original_file_path": "macros\\calendar_date\\iso_week_end.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.default__iso_week_end": {"unique_id": "macro.dbt_date.default__iso_week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_end.sql", "original_file_path": "macros\\calendar_date\\iso_week_end.sql", "name": "default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.snowflake__iso_week_end": {"unique_id": "macro.dbt_date.snowflake__iso_week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_end.sql", "original_file_path": "macros\\calendar_date\\iso_week_end.sql", "name": "snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.iso_week_of_year": {"unique_id": "macro.dbt_date.iso_week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_of_year.sql", "original_file_path": "macros\\calendar_date\\iso_week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date._iso_week_of_year": {"unique_id": "macro.dbt_date._iso_week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_of_year.sql", "original_file_path": "macros\\calendar_date\\iso_week_of_year.sql", "name": "_iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.default__iso_week_of_year": {"unique_id": "macro.dbt_date.default__iso_week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_of_year.sql", "original_file_path": "macros\\calendar_date\\iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.snowflake__iso_week_of_year": {"unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_of_year.sql", "original_file_path": "macros\\calendar_date\\iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.postgres__iso_week_of_year": {"unique_id": "macro.dbt_date.postgres__iso_week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_of_year.sql", "original_file_path": "macros\\calendar_date\\iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_start.sql", "original_file_path": "macros\\calendar_date\\iso_week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_start.sql", "original_file_path": "macros\\calendar_date\\iso_week_start.sql", "name": "_iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.default__iso_week_start": {"unique_id": "macro.dbt_date.default__iso_week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_start.sql", "original_file_path": "macros\\calendar_date\\iso_week_start.sql", "name": "default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.snowflake__iso_week_start": {"unique_id": "macro.dbt_date.snowflake__iso_week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_start.sql", "original_file_path": "macros\\calendar_date\\iso_week_start.sql", "name": "snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.postgres__iso_week_start": {"unique_id": "macro.dbt_date.postgres__iso_week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\iso_week_start.sql", "original_file_path": "macros\\calendar_date\\iso_week_start.sql", "name": "postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\last_month.sql", "original_file_path": "macros\\calendar_date\\last_month.sql", "name": "last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\last_month_name.sql", "original_file_path": "macros\\calendar_date\\last_month_name.sql", "name": "last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\last_month_number.sql", "original_file_path": "macros\\calendar_date\\last_month_number.sql", "name": "last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\last_week.sql", "original_file_path": "macros\\calendar_date\\last_week.sql", "name": "last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\month_name.sql", "original_file_path": "macros\\calendar_date\\month_name.sql", "name": "month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__month_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\month_name.sql", "original_file_path": "macros\\calendar_date\\month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\month_name.sql", "original_file_path": "macros\\calendar_date\\month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\month_name.sql", "original_file_path": "macros\\calendar_date\\month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\month_name.sql", "original_file_path": "macros\\calendar_date\\month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.526212}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\next_month.sql", "original_file_path": "macros\\calendar_date\\next_month.sql", "name": "next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5418215}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\next_month_name.sql", "original_file_path": "macros\\calendar_date\\next_month_name.sql", "name": "next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(1, tz), short=short) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5418215}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\next_month_number.sql", "original_file_path": "macros\\calendar_date\\next_month_number.sql", "name": "next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(1, tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5418215}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\next_week.sql", "original_file_path": "macros\\calendar_date\\next_week.sql", "name": "next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5418215}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\now.sql", "original_file_path": "macros\\calendar_date\\now.sql", "name": "now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_days_ago.sql", "original_file_path": "macros\\calendar_date\\n_days_ago.sql", "name": "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({{ dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_days_away.sql", "original_file_path": "macros\\calendar_date\\n_days_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_months_ago.sql", "original_file_path": "macros\\calendar_date\\n_months_ago.sql", "name": "n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ date_trunc('month',\n dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_months_away.sql", "original_file_path": "macros\\calendar_date\\n_months_away.sql", "name": "n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ date_trunc('month',\n dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_weeks_ago.sql", "original_file_path": "macros\\calendar_date\\n_weeks_ago.sql", "name": "n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ date_trunc('week',\n dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\n_weeks_away.sql", "original_file_path": "macros\\calendar_date\\n_weeks_away.sql", "name": "n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ date_trunc('week',\n dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\periods_since.sql", "original_file_path": "macros\\calendar_date\\periods_since.sql", "name": "periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.round_timestamp": {"unique_id": "macro.dbt_date.round_timestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\round_timestamp.sql", "original_file_path": "macros\\calendar_date\\round_timestamp.sql", "name": "round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ date_trunc(\"day\", dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\today.sql", "original_file_path": "macros\\calendar_date\\today.sql", "name": "today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\tomorrow.sql", "original_file_path": "macros\\calendar_date\\tomorrow.sql", "name": "tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\to_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\to_unixtimestamp.sql", "name": "to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\to_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\to_unixtimestamp.sql", "name": "default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\to_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\to_unixtimestamp.sql", "name": "snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\to_unixtimestamp.sql", "original_file_path": "macros\\calendar_date\\to_unixtimestamp.sql", "name": "bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_end.sql", "original_file_path": "macros\\calendar_date\\week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_end"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_end.sql", "original_file_path": "macros\\calendar_date\\week_end.sql", "name": "default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_end.sql", "original_file_path": "macros\\calendar_date\\week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_end.sql", "original_file_path": "macros\\calendar_date\\week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_of_year.sql", "original_file_path": "macros\\calendar_date\\week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.default__week_of_year": {"unique_id": "macro.dbt_date.default__week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_of_year.sql", "original_file_path": "macros\\calendar_date\\week_of_year.sql", "name": "default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.postgres__week_of_year": {"unique_id": "macro.dbt_date.postgres__week_of_year", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_of_year.sql", "original_file_path": "macros\\calendar_date\\week_of_year.sql", "name": "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 {{ type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5443714}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_start.sql", "original_file_path": "macros\\calendar_date\\week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_start"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_start.sql", "original_file_path": "macros\\calendar_date\\week_start.sql", "name": "default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_start.sql", "original_file_path": "macros\\calendar_date\\week_start.sql", "name": "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({{ dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\week_start.sql", "original_file_path": "macros\\calendar_date\\week_start.sql", "name": "postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dateadd('day', -1, date_trunc('week', dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\calendar_date\\yesterday.sql", "original_file_path": "macros\\calendar_date\\yesterday.sql", "name": "yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\fiscal_date\\get_fiscal_periods.sql", "original_file_path": "macros\\fiscal_date\\get_fiscal_periods.sql", "name": "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 {{ 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 {{ 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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.get_fiscal_year_dates": {"unique_id": "macro.dbt_date.get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\fiscal_date\\get_fiscal_year_dates.sql", "original_file_path": "macros\\fiscal_date\\get_fiscal_year_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__get_fiscal_year_dates": {"unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\fiscal_date\\get_fiscal_year_dates.sql", "original_file_path": "macros\\fiscal_date\\get_fiscal_year_dates.sql", "name": "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({{ 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({{ 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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.get_intervals_between": {"unique_id": "macro.dbt_date.get_intervals_between", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\date_spine.sql", "original_file_path": "macros\\_utils\\date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__get_intervals_between": {"unique_id": "macro.dbt_date.default__get_intervals_between", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\date_spine.sql", "original_file_path": "macros\\_utils\\date_spine.sql", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.date_spine": {"unique_id": "macro.dbt_date.date_spine", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\date_spine.sql", "original_file_path": "macros\\_utils\\date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__date_spine": {"unique_id": "macro.dbt_date.default__date_spine", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\date_spine.sql", "original_file_path": "macros\\_utils\\date_spine.sql", "name": "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 \"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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.get_powers_of_two": {"unique_id": "macro.dbt_date.get_powers_of_two", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\generate_series.sql", "original_file_path": "macros\\_utils\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__get_powers_of_two": {"unique_id": "macro.dbt_date.default__get_powers_of_two", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\generate_series.sql", "original_file_path": "macros\\_utils\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.generate_series": {"unique_id": "macro.dbt_date.generate_series", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\generate_series.sql", "original_file_path": "macros\\_utils\\generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_date.default__generate_series": {"unique_id": "macro.dbt_date.default__generate_series", "package_name": "dbt_date", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_date", "path": "macros\\_utils\\generate_series.sql", "original_file_path": "macros\\_utils\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\log_natural.sql", "original_file_path": "macros\\math\\log_natural.sql", "name": "log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\log_natural.sql", "original_file_path": "macros\\math\\log_natural.sql", "name": "default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\log_natural.sql", "original_file_path": "macros\\math\\log_natural.sql", "name": "bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\log_natural.sql", "original_file_path": "macros\\math\\log_natural.sql", "name": "snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\median.sql", "original_file_path": "macros\\math\\median.sql", "name": "median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5579708}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\percentile_cont.sql", "original_file_path": "macros\\math\\percentile_cont.sql", "name": "percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\percentile_cont.sql", "original_file_path": "macros\\math\\percentile_cont.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\percentile_cont.sql", "original_file_path": "macros\\math\\percentile_cont.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__rand"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\math\\rand.sql", "original_file_path": "macros\\math\\rand.sql", "name": "redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.snowflake__regexp_instr": {"unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.bigquery__regexp_instr": {"unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\regex\\regexp_instr.sql", "original_file_path": "macros\\regex\\regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=False,\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5736861}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values=False,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (model, column_name, value_set, top_n, quote_values, data_type, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.5893104}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.604946}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6058574}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "_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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 {{ dateadd(period, -test_periods, date_trunc(period, dbt_date.now())) }}\n as {{ type_timestamp() }})\n and\n metric_period < {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt_utils.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6215856}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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({{ datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ type_int() }}),\n cast({{interval}} as {{ type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ 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 {{dateadd(\n date_part,\n \"mod(\n cast(\" ~ datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt_utils.datediff", "macro.dbt_utils.type_int", "macro.dbt_utils.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6372316}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6372316}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6372316}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6443317}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6443317}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6443317}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6443317}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6534328}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.669151}, "macro.dbt_expectations._get_like_pattern_expression": {"unique_id": "macro.dbt_expectations._get_like_pattern_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_column_to_exist": {"unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ 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 {{ dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ 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 {{ type_timestamp() }}))\n <\n cast({{ dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.670208}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.685941}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6887736}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6892755}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6892755}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6892755}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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{% 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{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6892755}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6892755}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.6974955}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model, compare_model, factor=1, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.699274}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\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", "name": "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, compare_model, factor, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model, compare_model,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.699926}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\table_shape\\_get_column_list.sql", "original_file_path": "macros\\schema_tests\\table_shape\\_get_column_list.sql", "name": "_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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7012126}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\table_shape\\_list_intersect.sql", "original_file_path": "macros\\schema_tests\\table_shape\\_list_intersect.sql", "name": "_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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7026222}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.default__test_equal_expression": {"unique_id": "macro.dbt_expectations.default__test_equal_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\equal_expression.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\expression_between.sql", "original_file_path": "macros\\schema_tests\\_generalized\\expression_between.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\expression_between.sql", "original_file_path": "macros\\schema_tests\\_generalized\\expression_between.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7037168}, "macro.dbt_expectations.test_expression_is_true": {"unique_id": "macro.dbt_expectations.test_expression_is_true", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "original_file_path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "original_file_path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__expression_is_true": {"unique_id": "macro.dbt_expectations.default__expression_is_true", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "original_file_path": "macros\\schema_tests\\_generalized\\expression_is_true.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\_ignore_row_if_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\_ignore_row_if_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\_ignore_row_if_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\_ignore_row_if_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\_truth_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\_truth_expression.sql", "name": "truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\schema_tests\\_generalized\\_truth_expression.sql", "original_file_path": "macros\\schema_tests\\_generalized\\_truth_expression.sql", "name": "default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\datatypes.sql", "original_file_path": "macros\\utils\\datatypes.sql", "name": "postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.group_by": {"unique_id": "macro.dbt_expectations.group_by", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\groupby.sql", "original_file_path": "macros\\utils\\groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_expectations.default__group_by": {"unique_id": "macro.dbt_expectations.default__group_by", "package_name": "dbt_expectations", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_expectations", "path": "macros\\utils\\groupby.sql", "original_file_path": "macros\\utils\\groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_append.sql", "original_file_path": "macros\\cross_db_utils\\array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_append', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_append.sql", "original_file_path": "macros\\cross_db_utils\\array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_append.sql", "original_file_path": "macros\\cross_db_utils\\array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_append.sql", "original_file_path": "macros\\cross_db_utils\\array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_concat.sql", "original_file_path": "macros\\cross_db_utils\\array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_concat.sql", "original_file_path": "macros\\cross_db_utils\\array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_concat.sql", "original_file_path": "macros\\cross_db_utils\\array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_concat.sql", "original_file_path": "macros\\cross_db_utils\\array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_construct.sql", "original_file_path": "macros\\cross_db_utils\\array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_construct', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_construct.sql", "original_file_path": "macros\\cross_db_utils\\array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_construct.sql", "original_file_path": "macros\\cross_db_utils\\array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_construct.sql", "original_file_path": "macros\\cross_db_utils\\array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\array_construct.sql", "original_file_path": "macros\\cross_db_utils\\array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7173064}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\cast_array_to_string.sql", "original_file_path": "macros\\cross_db_utils\\cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('cast_array_to_string', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\cast_array_to_string.sql", "original_file_path": "macros\\cross_db_utils\\cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\cast_array_to_string.sql", "original_file_path": "macros\\cross_db_utils\\cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ type_string() }}){%- endset -%}\n {{ replace(replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\cast_array_to_string.sql", "original_file_path": "macros\\cross_db_utils\\cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\cast_array_to_string.sql", "original_file_path": "macros\\cross_db_utils\\cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp_in_utc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{ dbt_utils.current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{ dbt_utils.current_timestamp() }})::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\current_timestamp.sql", "original_file_path": "macros\\cross_db_utils\\current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\any_value.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\any_value.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('any_value', model.package_name, model.name) %}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.any_value", "macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\bool_or.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\bool_or.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('bool_or', model.package_name, model.name) %}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.bool_or", "macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\cast_bool_to_text.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\cast_bool_to_text.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n {% do dbt_utils.xdb_deprecation_warning('cast_bool_to_text', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.cast_bool_to_text", "macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\concat.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\concat.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {% do dbt_utils.xdb_deprecation_warning('concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.concat", "macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.733026}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {% do dbt_utils.xdb_deprecation_warning('type_string', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_string", "macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {% do dbt_utils.xdb_deprecation_warning('type_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {% do dbt_utils.xdb_deprecation_warning('type_float', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_float", "macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {% do dbt_utils.xdb_deprecation_warning('type_numeric', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_numeric", "macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {% do dbt_utils.xdb_deprecation_warning('type_bigint', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_bigint", "macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n {% do dbt_utils.xdb_deprecation_warning('type_int', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_int", "macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7445486}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\dateadd.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7493124}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\dateadd.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n {% do dbt_utils.xdb_deprecation_warning('dateadd', model.package_name, model.name) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.dateadd", "macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datediff.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\datediff.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('datediff', model.package_name, model.name) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.datediff", "macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\date_trunc.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\date_trunc.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n {% do dbt_utils.xdb_deprecation_warning('date_trunc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\escape_single_quotes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\escape_single_quotes.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) %}\n {% do dbt_utils.xdb_deprecation_warning('escape_single_quotes', model.package_name, model.name) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.escape_single_quotes", "macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\except.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\except.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n {% do dbt_utils.xdb_deprecation_warning('except', model.package_name, model.name) %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.except", "macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\hash.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\hash.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n {% do dbt_utils.xdb_deprecation_warning('hash', model.package_name, model.name) %}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.hash", "macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\intersect.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\intersect.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n {% do dbt_utils.xdb_deprecation_warning('intersect', model.package_name, model.name) %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.intersect", "macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\last_day.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\last_day.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('last_day', model.package_name, model.name) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.last_day", "macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\length.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\length.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('length', model.package_name, model.name) %}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.length", "macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\listagg.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\listagg.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {% do dbt_utils.xdb_deprecation_warning('listagg', model.package_name, model.name) %}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.listagg", "macro.dbt_utils.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\literal.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\literal.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\literal.sql", "name": "default__string_literal", "macro_sql": "{%- macro default__string_literal(value) -%}\n {% do dbt_utils.xdb_deprecation_warning('string_literal', model.package_name, model.name) %}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.string_literal", "macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\position.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\position.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) -%}\n {% do dbt_utils.xdb_deprecation_warning('position', model.package_name, model.name) %}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.position", "macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\replace.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7498133}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\replace.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) -%}\n {% do dbt_utils.xdb_deprecation_warning('replace', model.package_name, model.name) %}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.replace", "macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\right.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\right.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('right', model.package_name, model.name) %}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.right", "macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\safe_cast.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\safe_cast.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {% do dbt_utils.xdb_deprecation_warning('safe_cast', model.package_name, model.name) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.safe_cast", "macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\split_part.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\split_part.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n {% do dbt_utils.xdb_deprecation_warning('split_part', model.package_name, model.name) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.split_part", "macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.xdb_deprecation_warning": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\xdb_deprecation_warning.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning", "macro_sql": "{% macro xdb_deprecation_warning(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package. Use `\" ~ macro ~ \"` (no prefix) instead. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.xdb_deprecation_warning_without_replacement": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning_without_replacement", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\cross_db_utils\\deprecated\\xdb_deprecation_warning.sql", "original_file_path": "macros\\cross_db_utils\\deprecated\\xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning_without_replacement", "macro_sql": "{% macro xdb_deprecation_warning_without_replacement(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is deprecated and will be removed in a future version of the package, once equivalent functionality is implemented in dbt Core. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\accepted_range.sql", "original_file_path": "macros\\generic_tests\\accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\accepted_range.sql", "original_file_path": "macros\\generic_tests\\accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\at_least_one.sql", "original_file_path": "macros\\generic_tests\\at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\at_least_one.sql", "original_file_path": "macros\\generic_tests\\at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\cardinality_equality.sql", "original_file_path": "macros\\generic_tests\\cardinality_equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\cardinality_equality.sql", "original_file_path": "macros\\generic_tests\\cardinality_equality.sql", "name": "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 {{ except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\equality.sql", "original_file_path": "macros\\generic_tests\\equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\equality.sql", "original_file_path": "macros\\generic_tests\\equality.sql", "name": "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 {{ except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\equal_rowcount.sql", "original_file_path": "macros\\generic_tests\\equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\equal_rowcount.sql", "original_file_path": "macros\\generic_tests\\equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\expression_is_true.sql", "original_file_path": "macros\\generic_tests\\expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\expression_is_true.sql", "original_file_path": "macros\\generic_tests\\expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\fewer_rows_than.sql", "original_file_path": "macros\\generic_tests\\fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\fewer_rows_than.sql", "original_file_path": "macros\\generic_tests\\fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7655447}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\mutually_exclusive_ranges.sql", "original_file_path": "macros\\generic_tests\\mutually_exclusive_ranges.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\mutually_exclusive_ranges.sql", "original_file_path": "macros\\generic_tests\\mutually_exclusive_ranges.sql", "name": "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 nore 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_accepted_values.sql", "original_file_path": "macros\\generic_tests\\not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_accepted_values.sql", "original_file_path": "macros\\generic_tests\\not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_constant.sql", "original_file_path": "macros\\generic_tests\\not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_constant.sql", "original_file_path": "macros\\generic_tests\\not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_null_proportion.sql", "original_file_path": "macros\\generic_tests\\not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\not_null_proportion.sql", "original_file_path": "macros\\generic_tests\\not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\recency.sql", "original_file_path": "macros\\generic_tests\\recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\recency.sql", "original_file_path": "macros\\generic_tests\\recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dateadd(datepart, interval * -1, current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\relationships_where.sql", "original_file_path": "macros\\generic_tests\\relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\relationships_where.sql", "original_file_path": "macros\\generic_tests\\relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\sequential_values.sql", "original_file_path": "macros\\generic_tests\\sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\sequential_values.sql", "original_file_path": "macros\\generic_tests\\sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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 {{ type_timestamp() }})= cast({{ dateadd(datepart, interval, previous_column_name) }} as {{ type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\test_not_null_where.sql", "original_file_path": "macros\\generic_tests\\test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\test_not_null_where.sql", "original_file_path": "macros\\generic_tests\\test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\test_unique_where.sql", "original_file_path": "macros\\generic_tests\\test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\test_unique_where.sql", "original_file_path": "macros\\generic_tests\\test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\unique_combination_of_columns.sql", "original_file_path": "macros\\generic_tests\\unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.7811651}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\generic_tests\\unique_combination_of_columns.sql", "original_file_path": "macros\\generic_tests\\unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\log_info.sql", "original_file_path": "macros\\jinja_helpers\\log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\log_info.sql", "original_file_path": "macros\\jinja_helpers\\log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\pretty_log_format.sql", "original_file_path": "macros\\jinja_helpers\\pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\pretty_log_format.sql", "original_file_path": "macros\\jinja_helpers\\pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\pretty_time.sql", "original_file_path": "macros\\jinja_helpers\\pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\pretty_time.sql", "original_file_path": "macros\\jinja_helpers\\pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\slugify.sql", "original_file_path": "macros\\jinja_helpers\\slugify.sql", "name": "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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\_is_ephemeral.sql", "original_file_path": "macros\\jinja_helpers\\_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\jinja_helpers\\_is_relation.sql", "original_file_path": "macros\\jinja_helpers\\_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\materializations\\insert_by_period_materialization.sql", "original_file_path": "macros\\materializations\\insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\materializations\\insert_by_period_materialization.sql", "original_file_path": "macros\\materializations\\insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{ dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\") }},\n {{ dbt_utils.current_timestamp() }}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{ datediff('start_timestamp',\n 'stop_timestamp',\n period) }} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\materializations\\insert_by_period_materialization.sql", "original_file_path": "macros\\materializations\\insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\materializations\\insert_by_period_materialization.sql", "original_file_path": "macros\\materializations\\insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.796797}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\materializations\\insert_by_period_materialization.sql", "original_file_path": "macros\\materializations\\insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- set deprecation_warning = \"Warning: the `insert_by_period` materialization will be removed from dbt_utils in version 1.0.0. Install from dbt-labs/dbt-labs-experimental-features instead (see https://github.com/dbt-labs/dbt-utils/discussions/487). The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(deprecation_warning) -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n\n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\date_spine.sql", "original_file_path": "macros\\sql\\date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\date_spine.sql", "original_file_path": "macros\\sql\\date_spine.sql", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\date_spine.sql", "original_file_path": "macros\\sql\\date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\date_spine.sql", "original_file_path": "macros\\sql\\date_spine.sql", "name": "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 \"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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\deduplicate.sql", "original_file_path": "macros\\sql\\deduplicate.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\generate_series.sql", "original_file_path": "macros\\sql\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\generate_series.sql", "original_file_path": "macros\\sql\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\generate_series.sql", "original_file_path": "macros\\sql\\generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\generate_series.sql", "original_file_path": "macros\\sql\\generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.812434}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_column_values.sql", "original_file_path": "macros\\sql\\get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_column_values.sql", "original_file_path": "macros\\sql\\get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_filtered_columns_in_relation.sql", "original_file_path": "macros\\sql\\get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_filtered_columns_in_relation.sql", "original_file_path": "macros\\sql\\get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_query_results_as_dict.sql", "original_file_path": "macros\\sql\\get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_query_results_as_dict.sql", "original_file_path": "macros\\sql\\get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_relations_by_pattern.sql", "original_file_path": "macros\\sql\\get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_relations_by_pattern.sql", "original_file_path": "macros\\sql\\get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_relations_by_prefix.sql", "original_file_path": "macros\\sql\\get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_relations_by_prefix.sql", "original_file_path": "macros\\sql\\get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_pattern_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_pattern_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_pattern_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_pattern_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_prefix_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_tables_by_prefix_sql.sql", "original_file_path": "macros\\sql\\get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.828029}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_table_types_sql.sql", "original_file_path": "macros\\sql\\get_table_types_sql.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8436544}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_table_types_sql.sql", "original_file_path": "macros\\sql\\get_table_types_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8436544}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\get_table_types_sql.sql", "original_file_path": "macros\\sql\\get_table_types_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8436544}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\groupby.sql", "original_file_path": "macros\\sql\\groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\groupby.sql", "original_file_path": "macros\\sql\\groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\haversine_distance.sql", "original_file_path": "macros\\sql\\haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\haversine_distance.sql", "original_file_path": "macros\\sql\\haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\haversine_distance.sql", "original_file_path": "macros\\sql\\haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\haversine_distance.sql", "original_file_path": "macros\\sql\\haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\nullcheck.sql", "original_file_path": "macros\\sql\\nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\nullcheck.sql", "original_file_path": "macros\\sql\\nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\nullcheck_table.sql", "original_file_path": "macros\\sql\\nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\nullcheck_table.sql", "original_file_path": "macros\\sql\\nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\pivot.sql", "original_file_path": "macros\\sql\\pivot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\pivot.sql", "original_file_path": "macros\\sql\\pivot.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\safe_add.sql", "original_file_path": "macros\\sql\\safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\safe_add.sql", "original_file_path": "macros\\sql\\safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\star.sql", "original_file_path": "macros\\sql\\star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\star.sql", "original_file_path": "macros\\sql\\star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\surrogate_key.sql", "original_file_path": "macros\\sql\\surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\surrogate_key.sql", "original_file_path": "macros\\sql\\surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ hash(concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8446603}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\union.sql", "original_file_path": "macros\\sql\\union.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\union.sql", "original_file_path": "macros\\sql\\union.sql", "name": "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\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 in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\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({{ string_literal(relation) }} as {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\unpivot.sql", "original_file_path": "macros\\sql\\unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\unpivot.sql", "original_file_path": "macros\\sql\\unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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 {{ type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\width_bucket.sql", "original_file_path": "macros\\sql\\width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\width_bucket.sql", "original_file_path": "macros\\sql\\width_bucket.sql", "name": "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, type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\width_bucket.sql", "original_file_path": "macros\\sql\\width_bucket.sql", "name": "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, type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\sql\\width_bucket.sql", "original_file_path": "macros\\sql\\width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_host.sql", "original_file_path": "macros\\web\\get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_host.sql", "original_file_path": "macros\\web\\get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n split_part(\n split_part(\n replace(\n replace(\n replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.860232}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_parameter.sql", "original_file_path": "macros\\web\\get_url_parameter.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8759642}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_parameter.sql", "original_file_path": "macros\\web\\get_url_parameter.sql", "name": "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 = split_part(split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8759642}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_path.sql", "original_file_path": "macros\\web\\get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8759642}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "C:\\Users\\jessi\\git\\cosmos-models\\dbt_packages\\dbt_utils", "path": "macros\\web\\get_url_path.sql", "original_file_path": "macros\\web\\get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n replace(\n replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ position(\"'/'\", stripped_url) }}, 0),\n {{ position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n split_part(\n right(\n stripped_url,\n length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ safe_cast(\n parsed_path,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1672332548.8785233}}, "docs": {"cosmos_models.address": {"unique_id": "cosmos_models.address", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\address.md", "original_file_path": "models\\descriptions\\address.md", "name": "address", "block_contents": "Address unique to an individual wallet, validator, or token."}, "cosmos_models.amount": {"unique_id": "cosmos_models.amount", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\amount.md", "original_file_path": "models\\descriptions\\amount.md", "name": "amount", "block_contents": "The amount that was used in the transaction message."}, "cosmos_models.attribute_index": {"unique_id": "cosmos_models.attribute_index", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\attribute_index.md", "original_file_path": "models\\descriptions\\attribute_index.md", "name": "attribute_index", "block_contents": "The position in which attributes occur within a message"}, "cosmos_models.attribute_key": {"unique_id": "cosmos_models.attribute_key", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\attribute_key.md", "original_file_path": "models\\descriptions\\attribute_key.md", "name": "attribute_key", "block_contents": "The key from the key-value pair from the message attribute"}, "cosmos_models.attribute_value": {"unique_id": "cosmos_models.attribute_value", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\attribute_value.md", "original_file_path": "models\\descriptions\\attribute_value.md", "name": "attribute_value", "block_contents": "The value from the key-value pair from the message attribute"}, "cosmos_models.blockchain": {"unique_id": "cosmos_models.blockchain", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\blockchain.md", "original_file_path": "models\\descriptions\\blockchain.md", "name": "blockchain", "block_contents": "In this table, always Cosmos. Used to join to cross-chain tables."}, "cosmos_models.block_id": {"unique_id": "cosmos_models.block_id", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\block_id.md", "original_file_path": "models\\descriptions\\block_id.md", "name": "block_id", "block_contents": "The block height the block was recorded at."}, "cosmos_models.block_timestamp": {"unique_id": "cosmos_models.block_timestamp", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\block_timestamp.md", "original_file_path": "models\\descriptions\\block_timestamp.md", "name": "block_timestamp", "block_contents": "The date and time at which the block began."}, "cosmos_models.chain_id": {"unique_id": "cosmos_models.chain_id", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\chain_id.md", "original_file_path": "models\\descriptions\\chain_id.md", "name": "chain_id", "block_contents": "The name and version of the blockchain."}, "cosmos_models.codespace": {"unique_id": "cosmos_models.codespace", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\codespace.md", "original_file_path": "models\\descriptions\\codespace.md", "name": "codespace", "block_contents": "Namespace for the code."}, "cosmos_models.creator": {"unique_id": "cosmos_models.creator", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\creator.md", "original_file_path": "models\\descriptions\\creator.md", "name": "creator", "block_contents": "Name of the label creator - for now, this will always be \"Flipside.\""}, "cosmos_models.currency": {"unique_id": "cosmos_models.currency", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\currency.md", "original_file_path": "models\\descriptions\\currency.md", "name": "currency", "block_contents": "The currency that was used in the transaction message."}, "cosmos_models.decimal": {"unique_id": "cosmos_models.decimal", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\decimal.md", "original_file_path": "models\\descriptions\\decimal.md", "name": "decimal", "block_contents": "Divide amount by decimal to get the actual amount of currency being transferred."}, "cosmos_models.fee": {"unique_id": "cosmos_models.fee", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\fee.md", "original_file_path": "models\\descriptions\\fee.md", "name": "fee", "block_contents": "The fee is paid by the initiator of the transaction. Fee = gas * gas price."}, "cosmos_models.fee_denom": {"unique_id": "cosmos_models.fee_denom", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\fee_denom.md", "original_file_path": "models\\descriptions\\fee_denom.md", "name": "fee_denom", "block_contents": "The denominator of the transaction fee."}, "cosmos_models.gas_used": {"unique_id": "cosmos_models.gas_used", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\gas_used.md", "original_file_path": "models\\descriptions\\gas_used.md", "name": "gas_used", "block_contents": "The amount of gas consumed by the transaction."}, "cosmos_models.gas_wanted": {"unique_id": "cosmos_models.gas_wanted", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\gas_wanted.md", "original_file_path": "models\\descriptions\\gas_wanted.md", "name": "gas_wanted", "block_contents": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated."}, "cosmos_models.label": {"unique_id": "cosmos_models.label", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\label.md", "original_file_path": "models\\descriptions\\label.md", "name": "label", "block_contents": "The label or name of the address."}, "cosmos_models.label_subtype": {"unique_id": "cosmos_models.label_subtype", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\label_subtype.md", "original_file_path": "models\\descriptions\\label_subtype.md", "name": "label_subtype", "block_contents": "Adds more detail to the label type."}, "cosmos_models.label_type": {"unique_id": "cosmos_models.label_type", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\label_type.md", "original_file_path": "models\\descriptions\\label_type.md", "name": "label_type", "block_contents": "A broad category that describes what a label is representing."}, "cosmos_models.msg": {"unique_id": "cosmos_models.msg", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msg.md", "original_file_path": "models\\descriptions\\msg.md", "name": "msg", "block_contents": "The flattened underlying json from the messages or events within the transactions"}, "cosmos_models.msgs": {"unique_id": "cosmos_models.msgs", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msgs.md", "original_file_path": "models\\descriptions\\msgs.md", "name": "msgs", "block_contents": "The underlying json from the messages or events within the transactions"}, "cosmos_models.msg_group": {"unique_id": "cosmos_models.msg_group", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msg_group.md", "original_file_path": "models\\descriptions\\msg_group.md", "name": "msg_group", "block_contents": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "cosmos_models.msg_index": {"unique_id": "cosmos_models.msg_index", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msg_index.md", "original_file_path": "models\\descriptions\\msg_index.md", "name": "msg_index", "block_contents": "Short for \"message index,\" the position in which messages occur in a transaction."}, "cosmos_models.msg_sub_group": {"unique_id": "cosmos_models.msg_sub_group", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msg_sub_group.md", "original_file_path": "models\\descriptions\\msg_sub_group.md", "name": "msg_sub_group", "block_contents": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)"}, "cosmos_models.msg_type": {"unique_id": "cosmos_models.msg_type", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\msg_type.md", "original_file_path": "models\\descriptions\\msg_type.md", "name": "msg_type", "block_contents": "A string containing information about the type of message occurring."}, "cosmos_models.partition_by_block_id": {"unique_id": "cosmos_models.partition_by_block_id", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\partition_by_block_id.md", "original_file_path": "models\\descriptions\\partition_by_block_id.md", "name": "partition_by_block_id", "block_contents": "An internal column allowing incremental logic to be used in the code."}, "cosmos_models.project_name": {"unique_id": "cosmos_models.project_name", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\project_name.md", "original_file_path": "models\\descriptions\\project_name.md", "name": "project_name", "block_contents": "The name of the project the label belongs to."}, "cosmos_models.proposer_address": {"unique_id": "cosmos_models.proposer_address", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\proposer_address.md", "original_file_path": "models\\descriptions\\proposer_address.md", "name": "proposer_address", "block_contents": "The address of the validator that proposed the block."}, "cosmos_models.raw_metadata": {"unique_id": "cosmos_models.raw_metadata", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\raw_metadata.md", "original_file_path": "models\\descriptions\\raw_metadata.md", "name": "raw_metadata", "block_contents": "Additional details about the validator or token in json format."}, "cosmos_models.receiver": {"unique_id": "cosmos_models.receiver", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\receiver.md", "original_file_path": "models\\descriptions\\receiver.md", "name": "receiver", "block_contents": "The wallet address of the individual received tokens in the transfer."}, "cosmos_models.sender": {"unique_id": "cosmos_models.sender", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\sender.md", "original_file_path": "models\\descriptions\\sender.md", "name": "sender", "block_contents": "The wallet address of the individual sent tokens in the transfer."}, "cosmos_models.transfer_type": {"unique_id": "cosmos_models.transfer_type", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\transfer_type.md", "original_file_path": "models\\descriptions\\transfer_type.md", "name": "transfer_type", "block_contents": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub."}, "cosmos_models.tx_code": {"unique_id": "cosmos_models.tx_code", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_code.md", "original_file_path": "models\\descriptions\\tx_code.md", "name": "tx_code", "block_contents": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures."}, "cosmos_models.tx_count": {"unique_id": "cosmos_models.tx_count", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_count.md", "original_file_path": "models\\descriptions\\tx_count.md", "name": "tx_count", "block_contents": "The number of transactions that occurred during a block."}, "cosmos_models.tx_from": {"unique_id": "cosmos_models.tx_from", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_from.md", "original_file_path": "models\\descriptions\\tx_from.md", "name": "tx_from", "block_contents": "The wallet address of the individual who initiated the transaction"}, "cosmos_models.tx_id": {"unique_id": "cosmos_models.tx_id", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_id.md", "original_file_path": "models\\descriptions\\tx_id.md", "name": "tx_id", "block_contents": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "cosmos_models.tx_log": {"unique_id": "cosmos_models.tx_log", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_log.md", "original_file_path": "models\\descriptions\\tx_log.md", "name": "tx_log", "block_contents": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction."}, "cosmos_models.tx_succeeded": {"unique_id": "cosmos_models.tx_succeeded", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\tx_succeeded.md", "original_file_path": "models\\descriptions\\tx_succeeded.md", "name": "tx_succeeded", "block_contents": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "cosmos_models.validator_hash": {"unique_id": "cosmos_models.validator_hash", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\validator_hash.md", "original_file_path": "models\\descriptions\\validator_hash.md", "name": "validator_hash", "block_contents": "The root hash of the new validator set."}, "cosmos_models._unique_key": {"unique_id": "cosmos_models._unique_key", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\_unique_key.md", "original_file_path": "models\\descriptions\\_unique_key.md", "name": "_unique_key", "block_contents": "The unique key for the table."}, "dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "C:\\Python310\\lib\\site-packages\\dbt\\include\\global_project", "path": "overview.md", "original_file_path": "docs\\overview.md", "name": "__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"}, "cosmos_models.inserted_timestamp": {"unique_id": "cosmos_models.inserted_timestamp", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\inserted_timestamp.md", "original_file_path": "models\\descriptions\\inserted_timestamp.md", "name": "inserted_timestamp", "block_contents": "The date and time at which the block or transaction was inserted in the bronze tables."}, "cosmos_models.vote_option": {"unique_id": "cosmos_models.vote_option", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\vote_option.md", "original_file_path": "models\\descriptions\\vote_option.md", "name": "vote_option", "block_contents": "How the delegator voted on the proposal."}, "cosmos_models.proposal_type": {"unique_id": "cosmos_models.proposal_type", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\proposal_type.md", "original_file_path": "models\\descriptions\\proposal_type.md", "name": "proposal_type", "block_contents": "The type of proposal that was submitted."}, "cosmos_models.proposer": {"unique_id": "cosmos_models.proposer", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\proposer.md", "original_file_path": "models\\descriptions\\proposer.md", "name": "proposer", "block_contents": "The address of the validator that submitted the proposal."}, "cosmos_models.vote_weight": {"unique_id": "cosmos_models.vote_weight", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\vote_weight.md", "original_file_path": "models\\descriptions\\vote_weight.md", "name": "vote_weight", "block_contents": "Denotes what portion of a user's stake is put toward the voting option. If \"1\", 100% of the voter's voting power is put toward the selected option."}, "cosmos_models.proposal_id": {"unique_id": "cosmos_models.proposal_id", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\proposal_id.md", "original_file_path": "models\\descriptions\\proposal_id.md", "name": "proposal_id", "block_contents": "Numeric ID that corresponds to the proposal."}, "cosmos_models.depositor": {"unique_id": "cosmos_models.depositor", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\depositor.md", "original_file_path": "models\\descriptions\\depositor.md", "name": "depositor", "block_contents": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote."}, "cosmos_models.voter": {"unique_id": "cosmos_models.voter", "package_name": "cosmos_models", "root_path": "C:\\Users\\jessi\\git\\cosmos-models", "path": "descriptions\\voter.md", "original_file_path": "models\\descriptions\\voter.md", "name": "voter", "block_contents": "Address of the delegator that voted on the proposal."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.cosmos_models.bronze_api__get_validator_metadata": [], "model.cosmos_models.cosmos_share__dim_labels": ["model.cosmos_models.core__dim_labels"], "model.cosmos_models.cosmos_share__dim_tokens": ["model.cosmos_models.core__dim_tokens"], "model.cosmos_models.cosmos_share__fact_blocks": ["model.cosmos_models.core__fact_blocks"], "model.cosmos_models.cosmos_share__fact_msgs": ["model.cosmos_models.core__fact_msgs"], "model.cosmos_models.cosmos_share__fact_msg_attributes": ["model.cosmos_models.core__fact_msg_attributes"], "model.cosmos_models.cosmos_share__fact_transactions": ["model.cosmos_models.core__fact_transactions"], "model.cosmos_models.cosmos_share__fact_transfers": ["model.cosmos_models.core__fact_transfers"], "model.cosmos_models.cosmos_share__fact_validators": ["model.cosmos_models.core__fact_validators"], "model.cosmos_models.core__dim_labels": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.core__fact_validators"], "model.cosmos_models.core__dim_tokens": ["source.cosmos_models.osmo.asset_metadata"], "model.cosmos_models.core__fact_blocks": ["model.cosmos_models.silver__blocks"], "model.cosmos_models.core__fact_msgs": ["model.cosmos_models.silver__msgs"], "model.cosmos_models.core__fact_msg_attributes": ["model.cosmos_models.silver__msg_attributes"], "model.cosmos_models.core__fact_transfers": ["model.cosmos_models.silver__transfers"], "model.cosmos_models.core__fact_validators": ["model.cosmos_models.silver__validators"], "model.cosmos_models.silver__validators": ["model.cosmos_models.bronze_api__get_validator_metadata"], "model.cosmos_models.streamline__blocks": [], "model.cosmos_models.streamline__blocks_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks"], "model.cosmos_models.streamline__blocks_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"], "model.cosmos_models.streamline__complete_blocks": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"], "model.cosmos_models.streamline__complete_transactions": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"], "model.cosmos_models.streamline__complete_validators": ["source.cosmos_models.bronze_streamline.validators", "source.cosmos_models.bronze_streamline.validators"], "model.cosmos_models.streamline__transactions_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions"], "model.cosmos_models.streamline__transactions_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"], "model.cosmos_models.streamline__validators_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators"], "model.cosmos_models.streamline__validators_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"], "operation.cosmos_models.cosmos_models-on-run-start-0": [], "operation.cosmos_models.cosmos_models-on-run-start-1": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": ["model.cosmos_models.silver__validators"], "model.cosmos_models.bronze__blocks": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"], "model.cosmos_models.silver__msgs": ["model.cosmos_models.silver__transactions"], "model.cosmos_models.silver__msg_attributes": ["model.cosmos_models.silver__msgs"], "model.cosmos_models.silver__transfers": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"], "model.cosmos_models.silver__blocks": ["model.cosmos_models.bronze__blocks"], "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": ["model.cosmos_models.silver__blocks"], "model.cosmos_models.core__fact_transactions": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": ["model.cosmos_models.core__fact_transactions"], "model.cosmos_models.silver__transactions": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": ["model.cosmos_models.silver__transactions"], "model.cosmos_models.bronze__tx_search": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"], "model.cosmos_models.core__fact_governance_submit_proposal": ["model.cosmos_models.silver__governance_submit_proposal"], "model.cosmos_models.core__fact_governance_proposal_deposits": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.silver__governance_proposal_deposits"], "model.cosmos_models.core__dim_vote_options": ["model.cosmos_models.silver__governance_votes"], "model.cosmos_models.core__fact_governance_votes": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": ["model.cosmos_models.core__dim_vote_options"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": ["model.cosmos_models.core__dim_vote_options"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "model.cosmos_models.silver__governance_submit_proposal": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": ["model.cosmos_models.silver__governance_submit_proposal"], "model.cosmos_models.silver__governance_proposal_deposits": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": ["model.cosmos_models.silver__governance_proposal_deposits"], "model.cosmos_models.silver__governance_votes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER.7881155285": ["model.cosmos_models.silver__governance_votes"], "source.cosmos_models.bronze_streamline.blocks": [], "source.cosmos_models.bronze_streamline.tx_search": [], "source.cosmos_models.bronze_streamline.validators": [], "source.cosmos_models.osmo.asset_metadata": []}, "child_map": {"model.cosmos_models.bronze_api__get_validator_metadata": ["model.cosmos_models.silver__validators"], "model.cosmos_models.cosmos_share__dim_labels": [], "model.cosmos_models.cosmos_share__dim_tokens": [], "model.cosmos_models.cosmos_share__fact_blocks": [], "model.cosmos_models.cosmos_share__fact_msgs": [], "model.cosmos_models.cosmos_share__fact_msg_attributes": [], "model.cosmos_models.cosmos_share__fact_transactions": [], "model.cosmos_models.cosmos_share__fact_transfers": [], "model.cosmos_models.cosmos_share__fact_validators": [], "model.cosmos_models.core__dim_labels": ["model.cosmos_models.cosmos_share__dim_labels", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474"], "model.cosmos_models.core__dim_tokens": ["model.cosmos_models.core__dim_labels", "model.cosmos_models.core__fact_governance_proposal_deposits", "model.cosmos_models.cosmos_share__dim_tokens", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd"], "model.cosmos_models.core__fact_blocks": ["model.cosmos_models.cosmos_share__fact_blocks", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2"], "model.cosmos_models.core__fact_msgs": ["model.cosmos_models.cosmos_share__fact_msgs", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2"], "model.cosmos_models.core__fact_msg_attributes": ["model.cosmos_models.cosmos_share__fact_msg_attributes", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc"], "model.cosmos_models.core__fact_transfers": ["model.cosmos_models.cosmos_share__fact_transfers", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91"], "model.cosmos_models.core__fact_validators": ["model.cosmos_models.core__dim_labels", "model.cosmos_models.cosmos_share__fact_validators", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e"], "model.cosmos_models.silver__validators": ["model.cosmos_models.core__fact_validators", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9", "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557", "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3", "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215", "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b", "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278", "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff", "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825", "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a", "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb", "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69", "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7", "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4", "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10", "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348", "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732", "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07"], "model.cosmos_models.streamline__blocks": ["model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_realtime", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_realtime", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_realtime"], "model.cosmos_models.streamline__blocks_history": [], "model.cosmos_models.streamline__blocks_realtime": [], "model.cosmos_models.streamline__complete_blocks": ["model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_realtime"], "model.cosmos_models.streamline__complete_transactions": ["model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_realtime"], "model.cosmos_models.streamline__complete_validators": ["model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_realtime"], "model.cosmos_models.streamline__transactions_history": [], "model.cosmos_models.streamline__transactions_realtime": [], "model.cosmos_models.streamline__validators_history": [], "model.cosmos_models.streamline__validators_realtime": [], "operation.cosmos_models.cosmos_models-on-run-start-0": [], "operation.cosmos_models.cosmos_models-on-run-start-1": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": [], "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": [], "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": [], "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": [], "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": [], "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": [], "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": [], "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": [], "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": [], "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": [], "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": [], "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": [], "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": [], "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": [], "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": [], "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": [], "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": [], "model.cosmos_models.bronze__blocks": ["model.cosmos_models.silver__blocks"], "model.cosmos_models.silver__msgs": ["model.cosmos_models.core__fact_msgs", "model.cosmos_models.silver__msg_attributes", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12", "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994", "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79", "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf", "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565", "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e", "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2", "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f"], "model.cosmos_models.silver__msg_attributes": ["model.cosmos_models.core__fact_msg_attributes", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac", "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf", "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9", "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717", "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361", "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0", "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d"], "model.cosmos_models.silver__transfers": ["model.cosmos_models.core__fact_transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a", "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b", "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c", "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec", "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d", "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe", "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f", "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2", "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af", "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a"], "model.cosmos_models.silver__blocks": ["model.cosmos_models.core__fact_blocks", "model.cosmos_models.silver__transactions", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204", "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9", "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35", "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74", "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6", "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877", "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca", "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e"], "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": [], "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": [], "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": [], "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": [], "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": [], "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": [], "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": [], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": [], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": [], "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": [], "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": [], "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": [], "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": [], "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": [], "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": [], "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": [], "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": [], "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": [], "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": [], "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": [], "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": [], "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": [], "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": [], "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": [], "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": [], "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": [], "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": [], "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": [], "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": [], "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": [], "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": [], "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": [], "model.cosmos_models.core__fact_transactions": ["model.cosmos_models.cosmos_share__fact_transactions", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081", "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529", "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7", "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae", "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": [], "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": [], "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": [], "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": [], "model.cosmos_models.silver__transactions": ["model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__msgs", "model.cosmos_models.silver__transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5", "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d", "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0", "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5", "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27", "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61", "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339", "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d", "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885", "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0"], "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": [], "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": [], "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": [], "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": [], "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": [], "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": [], "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": [], "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": [], "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": [], "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": [], "model.cosmos_models.bronze__tx_search": ["model.cosmos_models.silver__transactions"], "model.cosmos_models.core__fact_governance_submit_proposal": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b"], "model.cosmos_models.core__fact_governance_proposal_deposits": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e"], "model.cosmos_models.core__dim_vote_options": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732"], "model.cosmos_models.core__fact_governance_votes": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": [], "model.cosmos_models.silver__governance_submit_proposal": ["model.cosmos_models.core__fact_governance_submit_proposal", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3", "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82", "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930", "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4", "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad", "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9", "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1"], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": [], "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": [], "model.cosmos_models.silver__governance_proposal_deposits": ["model.cosmos_models.core__fact_governance_proposal_deposits", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9", "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83", "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362", "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e", "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5", "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2", "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83", "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182", "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547", "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f", "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": [], "model.cosmos_models.silver__governance_votes": ["model.cosmos_models.core__dim_vote_options", "model.cosmos_models.core__fact_governance_votes", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER.7881155285", "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a", "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5", "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548", "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87", "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37", "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd", "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14", "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da"], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": [], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": [], "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": [], "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": [], "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": [], "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": [], "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": [], "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER.7881155285": [], "source.cosmos_models.bronze_streamline.blocks": ["model.cosmos_models.bronze__blocks", "model.cosmos_models.bronze__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks"], "source.cosmos_models.bronze_streamline.tx_search": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.bronze__tx_search", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions"], "source.cosmos_models.bronze_streamline.validators": ["model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators"], "source.cosmos_models.osmo.asset_metadata": ["model.cosmos_models.core__dim_tokens"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.2", "generated_at": "2023-02-10T16:54:16.416535Z", "invocation_id": "15b66dc7-f651-4fc8-adf3-0e7a21cf8864", "env": {}, "project_id": "5762bdc9c55ac0eb27f12b74b59d79e2", "user_id": null, "send_anonymous_usage_stats": true, "adapter_type": "snowflake"}, "nodes": {"model.cosmos_models.bronze__tx_search": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze", "fqn": ["cosmos_models", "bronze", "bronze__tx_search"], "unique_id": "model.cosmos_models.bronze__tx_search", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'block_id',\n cluster_by = ['_inserted_timestamp::date'],\n merge_update_columns = [\"block_id\"],\n) }}\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"tx_search\") }}'\n )\n ) A\n\n{% if is_incremental() %}\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n )\n{% else %}\n)\n{% endif %}\n\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n {{ source(\n 'bronze_streamline',\n 'tx_search'\n ) }}\n JOIN meta m\n ON m.file_name = metadata$filename\nWHERE\n DATA: error IS NULL\n qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "bronze/bronze__tx_search.sql", "original_file_path": "models/bronze/bronze__tx_search.sql", "name": "bronze__tx_search", "alias": "tx_search", "checksum": {"name": "sha256", "checksum": "8bceaabfd888306b2c305aba5a0dddaa0475d280aa2bfd51847cabe495f4f783"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "tx_search"], ["bronze_streamline", "tx_search"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/bronze/bronze__tx_search.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "block_id", "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"]}, "created_at": 1676048037.9220989, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.tx_search'\n )\n ) A\n\n\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.bronze.tx_search)\n )\n\n\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n streamline.COSMOS.tx_search\n JOIN meta m\n ON m.file_name = metadata$filename\nWHERE\n DATA: error IS NULL\n qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze.tx_search"}, "model.cosmos_models.bronze__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "block_id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze", "fqn": ["cosmos_models", "bronze", "bronze__blocks"], "unique_id": "model.cosmos_models.bronze__blocks", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'block_id',\n cluster_by = ['_inserted_timestamp::date'],\n merge_update_columns = [\"block_id\"],\n) }}\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"blocks\") }}'\n )\n ) A\n\n{% if is_incremental() %}\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n )\n{% else %}\n)\n{% endif %}\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n {{ source(\n 'bronze_streamline',\n 'blocks'\n ) }} \n JOIN meta m\n ON m.file_name = metadata$filename\n\nWHERE\n DATA: error IS NULL qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "bronze/bronze__blocks.sql", "original_file_path": "models/bronze/bronze__blocks.sql", "name": "bronze__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "7597a6184c1d332a0cb1eec9f221b5568e797338291bb2265804f45cbd812ce0"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/bronze/bronze__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "block_id", "cluster_by": ["_inserted_timestamp::date"], "merge_update_columns": ["block_id"]}, "created_at": 1676048037.929922, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n registered_on,\n last_modified,\n LEAST(\n last_modified,\n registered_on\n ) AS _inserted_timestamp,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.blocks'\n )\n ) A\n\n\nWHERE\n LEAST(\n registered_on,\n last_modified\n ) >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.bronze.blocks)\n )\n\nSELECT\n VALUE,\n _partition_by_block_id,\n block_number AS block_id,\n metadata,\n DATA,\n TO_TIMESTAMP(\n m._inserted_timestamp\n ) AS _inserted_timestamp\nFROM\n streamline.COSMOS.blocks \n JOIN meta m\n ON m.file_name = metadata$filename\n\nWHERE\n DATA: error IS NULL qualify(ROW_NUMBER() over (PARTITION BY block_number\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze.blocks"}, "model.cosmos_models.silver__governance_proposal_deposits": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_proposal_deposits"], "unique_id": "model.cosmos_models.silver__governance_proposal_deposits", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"tx_id\",\n incremental_strategy = 'merge',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\nWITH\n\n{% if is_incremental() %}\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n {{ this }}\n),\n{% endif %}\n\nproposal_ids AS (\n SELECT\n tx_id,\n block_id, \n block_timestamp, \n tx_succeeded,\n attribute_value AS proposal_id, \n _inserted_timestamp\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'proposal_id'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n{% endif %}\n),\ndeposit_value AS (\n SELECT\n tx_id,\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ) AS amount,\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))) AS currency\n FROM\n {{ ref('silver__msg_attributes') }}\n m\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'amount'\n AND attribute_value IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n{% endif %}\n),\ndepositors AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS depositor\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n attribute_key = 'acc_seq'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n d.depositor,\n p.proposal_id :: NUMBER as proposal_id,\n v.amount :: NUMBER as amount,\n v.currency,\n _inserted_timestamp\nFROM\n deposit_value v\n INNER JOIN proposal_ids p\n ON p.tx_id = v.tx_id\n INNER JOIN depositors d\n ON v.tx_id = d.tx_id", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__governance_proposal_deposits.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.sql", "name": "silver__governance_proposal_deposits", "alias": "governance_proposal_deposits", "checksum": {"name": "sha256", "checksum": "7ba0f436880e2773329530e36a466d6353ebc11398c284b4747be40917230750"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__governance_proposal_deposits.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "tx_id", "incremental_strategy": "merge", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.310291, "compiled_code": "\n\nWITH\n\n\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n COSMOS_DEV.silver.governance_proposal_deposits\n),\n\n\nproposal_ids AS (\n SELECT\n tx_id,\n block_id, \n block_timestamp, \n tx_succeeded,\n attribute_value AS proposal_id, \n _inserted_timestamp\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'proposal_id'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\ndeposit_value AS (\n SELECT\n tx_id,\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ) AS amount,\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))) AS currency\n FROM\n COSMOS_DEV.silver.msg_attributes\n m\n WHERE\n msg_type = 'proposal_deposit'\n AND attribute_key = 'amount'\n AND attribute_value IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\ndepositors AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS depositor\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n COSMOS_DEV.silver.governance_proposal_deposits\n)\n\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n d.depositor,\n p.proposal_id :: NUMBER as proposal_id,\n v.amount :: NUMBER as amount,\n v.currency,\n _inserted_timestamp\nFROM\n deposit_value v\n INNER JOIN proposal_ids p\n ON p.tx_id = v.tx_id\n INNER JOIN depositors d\n ON v.tx_id = d.tx_id", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_proposal_deposits"}, "model.cosmos_models.silver__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": "block_timestamp::DATE", "post-hook": [{"sql": "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__transactions"], "unique_id": "model.cosmos_models.silver__transactions", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = 'block_timestamp::DATE',\n post_hook = \"ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION\",\n) }}\n\nWITH base_transactions AS (\n\n SELECT\n block_id,\n t.value :hash :: STRING AS tx_id,\n t.value :tx_result :codespace AS codespace,\n t.value :tx_result :gas_used :: NUMBER AS gas_used,\n t.value :tx_result :gas_wanted :: NUMBER AS gas_wanted,\n CASE\n WHEN t.value :tx_result :code :: NUMBER = 0 THEN TRUE\n ELSE FALSE\n END AS tx_succeeded,\n t.value :tx_result :code :: NUMBER AS tx_code,\n t.value :tx_result :events AS msgs,\n t.value :tx_result :log :: STRING AS tx_log,\n _inserted_timestamp\n FROM\n {{ ref('bronze__tx_search') }},\n TABLE(FLATTEN(DATA :result :txs)) t\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n t.block_id,\n b.block_timestamp,\n tx_id,\n codespace,\n gas_used,\n gas_wanted,\n tx_succeeded,\n tx_code,\n msgs,\n tx_log,\n t._inserted_timestamp,\n concat_ws(\n '-',\n t.block_id,\n tx_id\n ) AS unique_key\nFROM\n base_transactions t\n JOIN {{ ref('silver__blocks') }}\n b\n ON t.block_id = b.block_id\n\n{% if is_incremental() %}\nWHERE\n b._inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify ROW_NUMBER() over (\n PARTITION BY t.block_id,\n tx_id\n ORDER BY\n t._inserted_timestamp DESC\n) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__transactions.sql", "original_file_path": "models/silver/silver__transactions.sql", "name": "silver__transactions", "alias": "transactions", "checksum": {"name": "sha256", "checksum": "46095ef2c94919375042d06bd00a15899a17423792606708a8a705fabd04c0ba"}, "tags": [], "refs": [["bronze__tx_search"], ["silver__blocks"]], "sources": [], "metrics": [], "description": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CODESPACE": {"name": "CODESPACE", "description": "Namespace for the code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The amount of gas consumed by the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_WANTED": {"name": "GAS_WANTED", "description": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_CODE": {"name": "TX_CODE", "description": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSGS": {"name": "MSGS", "description": "The underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_LOG": {"name": "TX_LOG", "description": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__transactions.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": "block_timestamp::DATE", "post-hook": ["ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION"]}, "created_at": 1676048038.2766101, "compiled_code": "\n\nWITH base_transactions AS (\n\n SELECT\n block_id,\n t.value :hash :: STRING AS tx_id,\n t.value :tx_result :codespace AS codespace,\n t.value :tx_result :gas_used :: NUMBER AS gas_used,\n t.value :tx_result :gas_wanted :: NUMBER AS gas_wanted,\n CASE\n WHEN t.value :tx_result :code :: NUMBER = 0 THEN TRUE\n ELSE FALSE\n END AS tx_succeeded,\n t.value :tx_result :code :: NUMBER AS tx_code,\n t.value :tx_result :events AS msgs,\n t.value :tx_result :log :: STRING AS tx_log,\n _inserted_timestamp\n FROM\n COSMOS_DEV.bronze.tx_search,\n TABLE(FLATTEN(DATA :result :txs)) t\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transactions\n )\n\n)\nSELECT\n t.block_id,\n b.block_timestamp,\n tx_id,\n codespace,\n gas_used,\n gas_wanted,\n tx_succeeded,\n tx_code,\n msgs,\n tx_log,\n t._inserted_timestamp,\n concat_ws(\n '-',\n t.block_id,\n tx_id\n ) AS unique_key\nFROM\n base_transactions t\n JOIN COSMOS_DEV.silver.blocks\n b\n ON t.block_id = b.block_id\n\n\nWHERE\n b._inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transactions\n )\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY t.block_id,\n tx_id\n ORDER BY\n t._inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.transactions"}, "model.cosmos_models.silver__transfers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": "block_timestamp::DATE", "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__transfers"], "unique_id": "model.cosmos_models.silver__transfers", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = 'block_timestamp::DATE',\n) }}\n\nWITH cosmos_txs AS (\n\n SELECT\n DISTINCT tx_id\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n attribute_value IN (\n '/cosmos.bank.v1beta1.MsgSend',\n '/cosmos.bank.v1beta1.MsgMultiSend'\n )\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nsender_index AS (\n SELECT\n tx_id,\n MIN(msg_index) AS msg_index\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\nGROUP BY\n tx_id\n),\nsender AS (\n SELECT\n m.block_id,\n m.tx_id,\n s.msg_index,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS sender\n FROM\n {{ ref('silver__msg_attributes') }}\n m\n INNER JOIN sender_index s\n ON m.tx_id = s.tx_id\n AND m.msg_index = s.msg_index\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nmsg_index AS (\n SELECT\n m.block_id,\n v.tx_id,\n attribute_key,\n m.msg_index\n FROM\n cosmos_txs v\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nreceiver AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n attribute_value AS receiver\n FROM\n cosmos_txs v\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'recipient'\n AND m.msg_index > s.msg_index\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\namount AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n COALESCE(\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ),\n TRY_PARSE_JSON(attribute_value) :amount\n ) AS amount,\n COALESCE(\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))),\n TRY_PARSE_JSON(attribute_value) [1] :denom\n ) AS currency\n FROM\n cosmos_txs v\n LEFT OUTER JOIN {{ ref('silver__msg_attributes') }}\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\ncosmos_txs_final AS (\n SELECT\n r.block_id,\n block_timestamp,\n r.tx_id,\n tx_succeeded,\n 'COSMOS' AS transfer_type,\n r.msg_index,\n sender,\n amount,\n currency,\n receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n r.block_id,\n r.tx_id,\n r.msg_index,\n currency\n ) AS unique_key\n FROM\n receiver r\n LEFT OUTER JOIN amount C\n ON r.tx_id = C.tx_id\n AND r.block_id = C.block_id\n AND r.msg_index = C.msg_index\n LEFT OUTER JOIN sender s\n ON r.tx_id = s.tx_id\n AND r.block_id = s.block_id\n LEFT OUTER JOIN {{ ref('silver__transactions') }}\n t\n ON r.tx_id = t.tx_id\n AND r.block_id = t.block_id\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nibc_in_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_IN' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'write_acknowledgement'\n AND attribute_key = 'packet_data'\n AND TRY_PARSE_JSON(attribute_value): amount IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nibc_out_txid AS (\n SELECT\n tx_id\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'ibc_transfer'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nibc_out_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_OUT' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n tx_id IN (\n SELECT\n tx_id\n FROM\n ibc_out_txid\n )\n AND msg_type = 'send_packet'\n AND attribute_key = 'packet_data'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\nibc_transfers_agg AS (\n SELECT\n *\n FROM\n ibc_out_tx\n UNION ALL\n SELECT\n *\n FROM\n ibc_in_tx\n),\nibc_tx_final AS (\n SELECT\n i.block_id,\n i.block_timestamp,\n i.tx_id,\n i.tx_succeeded,\n i.transfer_type,\n i.sender,\n i.amount,\n i.currency,\n i.receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\n FROM\n ibc_transfers_agg i\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n ibc_tx_final\nUNION ALL\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n cosmos_txs_final", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__transfers.sql", "original_file_path": "models/silver/silver__transfers.sql", "name": "silver__transfers", "alias": "transfers", "checksum": {"name": "sha256", "checksum": "de17f3b6839dd6281aa73bc889be5e2b2d28742329618dccca13a5edea94c373"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"], ["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all transfers on the Cosmos Hub, including IBC transfers as on- and off-ramps to Cosmos and wallet to wallet transfers", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TRANSFER_TYPE": {"name": "TRANSFER_TYPE", "description": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The wallet address of the individual sent tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The wallet address of the individual received tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__transfers.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": "block_timestamp::DATE"}, "created_at": 1676048038.351603, "compiled_code": "\n\nWITH cosmos_txs AS (\n\n SELECT\n DISTINCT tx_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_value IN (\n '/cosmos.bank.v1beta1.MsgSend',\n '/cosmos.bank.v1beta1.MsgMultiSend'\n )\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nsender_index AS (\n SELECT\n tx_id,\n MIN(msg_index) AS msg_index\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\nGROUP BY\n tx_id\n),\nsender AS (\n SELECT\n m.block_id,\n m.tx_id,\n s.msg_index,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS sender\n FROM\n COSMOS_DEV.silver.msg_attributes\n m\n INNER JOIN sender_index s\n ON m.tx_id = s.tx_id\n AND m.msg_index = s.msg_index\n WHERE\n msg_type = 'tx'\n AND attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nmsg_index AS (\n SELECT\n m.block_id,\n v.tx_id,\n attribute_key,\n m.msg_index\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nreceiver AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n attribute_value AS receiver\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'recipient'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\namount AS (\n SELECT\n m.block_id,\n v.tx_id,\n m.msg_index,\n COALESCE(\n SPLIT_PART(\n TRIM(\n REGEXP_REPLACE(\n attribute_value,\n '[^[:digit:]]',\n ' '\n )\n ),\n ' ',\n 0\n ),\n TRY_PARSE_JSON(attribute_value) :amount\n ) AS amount,\n COALESCE(\n RIGHT(attribute_value, LENGTH(attribute_value) - LENGTH(SPLIT_PART(TRIM(REGEXP_REPLACE(attribute_value, '[^[:digit:]]', ' ')), ' ', 0))),\n TRY_PARSE_JSON(attribute_value) [1] :denom\n ) AS currency\n FROM\n cosmos_txs v\n LEFT OUTER JOIN COSMOS_DEV.silver.msg_attributes\n m\n ON v.tx_id = m.tx_id\n INNER JOIN sender s\n ON v.tx_id = s.tx_id\n AND m.block_id = s.block_id\n WHERE\n msg_type = 'transfer'\n AND attribute_key = 'amount'\n AND m.msg_index > s.msg_index\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\ncosmos_txs_final AS (\n SELECT\n r.block_id,\n block_timestamp,\n r.tx_id,\n tx_succeeded,\n 'COSMOS' AS transfer_type,\n r.msg_index,\n sender,\n amount,\n currency,\n receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n r.block_id,\n r.tx_id,\n r.msg_index,\n currency\n ) AS unique_key\n FROM\n receiver r\n LEFT OUTER JOIN amount C\n ON r.tx_id = C.tx_id\n AND r.block_id = C.block_id\n AND r.msg_index = C.msg_index\n LEFT OUTER JOIN sender s\n ON r.tx_id = s.tx_id\n AND r.block_id = s.block_id\n LEFT OUTER JOIN COSMOS_DEV.silver.transactions\n t\n ON r.tx_id = t.tx_id\n AND r.block_id = t.block_id\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_in_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_IN' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'write_acknowledgement'\n AND attribute_key = 'packet_data'\n AND TRY_PARSE_JSON(attribute_value): amount IS NOT NULL\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_out_txid AS (\n SELECT\n tx_id\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'ibc_transfer'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_out_tx AS (\n SELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_index,\n 'IBC_TRANSFER_OUT' AS transfer_type,\n TRY_PARSE_JSON(attribute_value) :sender :: STRING AS sender,\n TRY_PARSE_JSON(attribute_value) :amount :: INT AS amount,\n CASE\n WHEN TRY_PARSE_JSON(attribute_value) :denom :: STRING LIKE '%/%' THEN SPLIT(TRY_PARSE_JSON(attribute_value) :denom :: STRING, '/') [array_size(split(try_parse_json(attribute_value):denom::string, '/')) - 1]\n ELSE TRY_PARSE_JSON(attribute_value) :denom :: STRING\n END AS currency,\n TRY_PARSE_JSON(attribute_value) :receiver :: STRING AS receiver,\n _inserted_timestamp,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n currency\n ) AS unique_key\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n tx_id IN (\n SELECT\n tx_id\n FROM\n ibc_out_txid\n )\n AND msg_type = 'send_packet'\n AND attribute_key = 'packet_data'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.transfers\n)\n\n),\nibc_transfers_agg AS (\n SELECT\n *\n FROM\n ibc_out_tx\n UNION ALL\n SELECT\n *\n FROM\n ibc_in_tx\n),\nibc_tx_final AS (\n SELECT\n i.block_id,\n i.block_timestamp,\n i.tx_id,\n i.tx_succeeded,\n i.transfer_type,\n i.sender,\n i.amount,\n i.currency,\n i.receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\n FROM\n ibc_transfers_agg i\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n ibc_tx_final\nUNION ALL\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n msg_index,\n _inserted_timestamp,\n unique_key\nFROM\n cosmos_txs_final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.transfers"}, "model.cosmos_models.silver__governance_submit_proposal": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tx_id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_submit_proposal"], "unique_id": "model.cosmos_models.silver__governance_submit_proposal", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"tx_id\",\n incremental_strategy = 'merge',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\nWITH\n\n{% if is_incremental() %}\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n {{ this }}\n),\n{% endif %}\n\nproposal_ids AS (\n SELECT\n tx_id,\n block_id, \n block_timestamp, \n tx_succeeded, \n attribute_value AS proposal_id, \n _inserted_timestamp\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_id'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n{% endif %}\n),\nproposal_type AS (\n SELECT\n tx_id,\n attribute_value AS proposal_type\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_type'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n{% endif %}\n),\nproposer AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS proposer\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n attribute_key = 'acc_seq'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n{% endif %}\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n proposer,\n p.proposal_id :: NUMBER AS proposal_id,\n y.proposal_type,\n _inserted_timestamp\nFROM\n proposal_ids p\n INNER JOIN proposal_type y\n ON p.tx_id = y.tx_id\n INNER JOIN proposer pp\n ON p.tx_id = pp.tx_id", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__governance_submit_proposal.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.sql", "name": "silver__governance_submit_proposal", "alias": "governance_submit_proposal", "checksum": {"name": "sha256", "checksum": "8f75526ef1c1ba9a01f233c7a76c7b1f3d08bbd99e7134b07dcd48145d30a31c"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER": {"name": "PROPOSER", "description": "The address of the validator that submitted the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_TYPE": {"name": "PROPOSAL_TYPE", "description": "The type of proposal that was submitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__governance_submit_proposal.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "tx_id", "incremental_strategy": "merge", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.387413, "compiled_code": "\n\nWITH\n\n\nmax_date AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n COSMOS_DEV.silver.governance_submit_proposal\n),\n\n\nproposal_ids AS (\n SELECT\n tx_id,\n block_id, \n block_timestamp, \n tx_succeeded, \n attribute_value AS proposal_id, \n _inserted_timestamp\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_id'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\nproposal_type AS (\n SELECT\n tx_id,\n attribute_value AS proposal_type\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n msg_type = 'submit_proposal'\n AND attribute_key = 'proposal_type'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n),\nproposer AS (\n SELECT\n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS proposer\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n max_date\n)\n\n)\nSELECT\n block_id,\n block_timestamp,\n p.tx_id,\n tx_succeeded,\n proposer,\n p.proposal_id :: NUMBER AS proposal_id,\n y.proposal_type,\n _inserted_timestamp\nFROM\n proposal_ids p\n INNER JOIN proposal_type y\n ON p.tx_id = y.tx_id\n INNER JOIN proposer pp\n ON p.tx_id = pp.tx_id", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_submit_proposal"}, "model.cosmos_models.silver__msg_attributes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__msg_attributes"], "unique_id": "model.cosmos_models.silver__msg_attributes", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n b.index AS attribute_index,\n TRY_BASE64_DECODE_STRING(\n b.value :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n b.value :value :: STRING\n ) AS attribute_value,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n attribute_index\n ) AS unique_key,\n _inserted_timestamp\nFROM\n {{ ref('silver__msgs') }} A,\n LATERAL FLATTEN(\n input => A.msg,\n path => 'attributes'\n ) b\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__msg_attributes.sql", "original_file_path": "models/silver/silver__msg_attributes.sql", "name": "silver__msg_attributes", "alias": "msg_attributes", "checksum": {"name": "sha256", "checksum": "44846f58798c88551cec63dbd22154100c72467d73a44b04d9df1b219b6e6c05"}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "Records of all messages associated to transactions that have occurred on the Cosmos Hub, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_SUB_GROUP": {"name": "MSG_SUB_GROUP", "description": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The underlying json from the message or event within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__msg_attributes.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.1123462, "compiled_code": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n b.index AS attribute_index,\n TRY_BASE64_DECODE_STRING(\n b.value :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n b.value :value :: STRING\n ) AS attribute_value,\n concat_ws(\n '-',\n block_id,\n tx_id,\n msg_index,\n attribute_index\n ) AS unique_key,\n _inserted_timestamp\nFROM\n COSMOS_DEV.silver.msgs A,\n LATERAL FLATTEN(\n input => A.msg,\n path => 'attributes'\n ) b\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.msg_attributes\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.msg_attributes"}, "model.cosmos_models.silver__governance_votes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["tx_id", "proposal_id", "voter", "vote_option"], "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__governance_votes"], "unique_id": "model.cosmos_models.silver__governance_votes", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['tx_id','proposal_id','voter','vote_option'],\n incremental_strategy = 'merge',\n cluster_by = ['block_timestamp::DATE']\n) }}\n\nWITH base_atts AS (\n\n SELECT\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n COALESCE(\n TRY_CAST(\n SPLIT_PART(REPLACE(REPLACE(b.path, '['), ']'), '.', 1) AS INT\n ),\n 0\n ) AS msg_sub_sub_group,\n msg_index,\n COALESCE(\n b.key,\n attribute_key\n ) AS attribute_key,\n COALESCE(\n b.value,\n attribute_value\n ) AS attribute_value,\n msg_type,\n _inserted_timestamp\n FROM\n {{ ref('silver__msg_attributes') }},\n LATERAL FLATTEN(\n TRY_PARSE_JSON(\n CASE\n WHEN attribute_key = 'option'\n AND attribute_value LIKE '%option%option%' THEN '[' || REGEXP_REPLACE(\n attribute_value,\n '\\}\\n',\n '\\},'\n ) || ']'\n ELSE attribute_value\n END\n ),\n outer => TRUE\n ) b\n WHERE\n (\n msg_type = 'proposal_vote'\n OR (\n msg_type = 'message'\n AND attribute_key = 'sender'\n )\n )\n AND COALESCE(\n b.value,\n ''\n ) NOT LIKE '%option%weight%'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n {{ this }}\n)\n{% endif %}\n),\nfin AS (\n SELECT\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n msg_sub_sub_group,\n _inserted_timestamp,\n OBJECT_AGG(\n attribute_key :: STRING,\n attribute_value :: variant\n ) AS j,\n {# j :proposal_id :: INT AS proposal_id, #}\n j :option :: STRING AS vote_option,\n j :weight :: FLOAT AS vote_weight\n FROM\n base_atts\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key IN (\n 'option',\n 'weight'\n )\n GROUP BY\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n msg_sub_sub_group,\n _inserted_timestamp\n)\nSELECT\n A.block_id,\n A.block_timestamp,\n A.tx_id,\n A.tx_succeeded,\n b.voter,\n C.proposal_id,\n CASE\n WHEN A.vote_option = 'VOTE_OPTION_YES' THEN 1\n WHEN A.vote_option = 'VOTE_OPTION_ABSTAIN' THEN 2\n WHEN A.vote_option = 'VOTE_OPTION_NO' THEN 3\n WHEN A.vote_option = 'VOTE_OPTION_NO_WITH_VETO' THEN 4\n ELSE A.vote_option :: INT\n END AS vote_option,\n A.vote_weight,\n A._inserted_timestamp\nFROM\n fin A\n JOIN (\n SELECT\n tx_id,\n msg_group,\n msg_sub_group,\n attribute_value AS voter\n FROM\n base_atts\n WHERE\n msg_type = 'message'\n AND attribute_key = 'sender'\n ) b\n ON A.tx_id = b.tx_id\n AND A.msg_group = b.msg_group\n AND A.msg_sub_group = b.msg_sub_group\n JOIN (\n SELECT\n tx_id,\n msg_group,\n msg_sub_group,\n attribute_value :: INT AS proposal_id\n FROM\n base_atts\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key = 'proposal_id'\n ) C\n ON A.tx_id = C.tx_id\n AND A.msg_group = C.msg_group\n AND A.msg_sub_group = C.msg_sub_group qualify(ROW_NUMBER() over (PARTITION BY A.tx_id, b.voter, C.proposal_id, vote_option\nORDER BY\n A.msg_group DESC) = 1)", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__governance_votes.sql", "original_file_path": "models/silver/silver__governance_votes.sql", "name": "silver__governance_votes", "alias": "governance_votes", "checksum": {"name": "sha256", "checksum": "c1e089dc46efc19f78a496157370478bc561d4538c2a1f887e471d930cba35cd"}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all votes on proposals.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "Address of the delegator that voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__governance_votes.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": ["tx_id", "proposal_id", "voter", "vote_option"], "incremental_strategy": "merge", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.16034, "compiled_code": "\n\nWITH base_atts AS (\n\n SELECT\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n COALESCE(\n TRY_CAST(\n SPLIT_PART(REPLACE(REPLACE(b.path, '['), ']'), '.', 1) AS INT\n ),\n 0\n ) AS msg_sub_sub_group,\n msg_index,\n COALESCE(\n b.key,\n attribute_key\n ) AS attribute_key,\n COALESCE(\n b.value,\n attribute_value\n ) AS attribute_value,\n msg_type,\n _inserted_timestamp\n FROM\n COSMOS_DEV.silver.msg_attributes,\n LATERAL FLATTEN(\n TRY_PARSE_JSON(\n CASE\n WHEN attribute_key = 'option'\n AND attribute_value LIKE '%option%option%' THEN '[' || REGEXP_REPLACE(\n attribute_value,\n '\\}\\n',\n '\\},'\n ) || ']'\n ELSE attribute_value\n END\n ),\n outer => TRUE\n ) b\n WHERE\n (\n msg_type = 'proposal_vote'\n OR (\n msg_type = 'message'\n AND attribute_key = 'sender'\n )\n )\n AND COALESCE(\n b.value,\n ''\n ) NOT LIKE '%option%weight%'\n\n\nAND _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) _inserted_timestamp\n FROM\n COSMOS_DEV.silver.governance_votes\n)\n\n),\nfin AS (\n SELECT\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n msg_sub_sub_group,\n _inserted_timestamp,\n OBJECT_AGG(\n attribute_key :: STRING,\n attribute_value :: variant\n ) AS j,\n \n j :option :: STRING AS vote_option,\n j :weight :: FLOAT AS vote_weight\n FROM\n base_atts\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key IN (\n 'option',\n 'weight'\n )\n GROUP BY\n block_id,\n block_timestamp,\n tx_succeeded,\n tx_id,\n msg_group,\n msg_sub_group,\n msg_sub_sub_group,\n _inserted_timestamp\n)\nSELECT\n A.block_id,\n A.block_timestamp,\n A.tx_id,\n A.tx_succeeded,\n b.voter,\n C.proposal_id,\n CASE\n WHEN A.vote_option = 'VOTE_OPTION_YES' THEN 1\n WHEN A.vote_option = 'VOTE_OPTION_ABSTAIN' THEN 2\n WHEN A.vote_option = 'VOTE_OPTION_NO' THEN 3\n WHEN A.vote_option = 'VOTE_OPTION_NO_WITH_VETO' THEN 4\n ELSE A.vote_option :: INT\n END AS vote_option,\n A.vote_weight,\n A._inserted_timestamp\nFROM\n fin A\n JOIN (\n SELECT\n tx_id,\n msg_group,\n msg_sub_group,\n attribute_value AS voter\n FROM\n base_atts\n WHERE\n msg_type = 'message'\n AND attribute_key = 'sender'\n ) b\n ON A.tx_id = b.tx_id\n AND A.msg_group = b.msg_group\n AND A.msg_sub_group = b.msg_sub_group\n JOIN (\n SELECT\n tx_id,\n msg_group,\n msg_sub_group,\n attribute_value :: INT AS proposal_id\n FROM\n base_atts\n WHERE\n msg_type = 'proposal_vote'\n AND attribute_key = 'proposal_id'\n ) C\n ON A.tx_id = C.tx_id\n AND A.msg_group = C.msg_group\n AND A.msg_sub_group = C.msg_sub_group qualify(ROW_NUMBER() over (PARTITION BY A.tx_id, b.voter, C.proposal_id, vote_option\nORDER BY\n A.msg_group DESC) = 1)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.governance_votes"}, "model.cosmos_models.silver__validators": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.bronze_api__get_validator_metadata"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__validators"], "unique_id": "model.cosmos_models.silver__validators", "raw_code": "{{ config(\n materialized = 'table'\n) }}\n\nSELECT\n address,\n 'cosmos' AS blockchain,\n 'flipside' AS creator,\n 'operator' AS label_type,\n 'validator' AS label_subtype,\n DATA :title :: STRING AS label,\n DATA :cons_address :: STRING AS project_name,\n DATA :acc_address :: STRING AS account_address,\n DATA :power :: NUMBER AS delegator_shares,\n DATA :self_stake :: NUMBER AS self_delegation,\n DATA :delegators :: NUMBER AS num_delegators,\n DATA :fee :: NUMBER AS rate,\n RANK() over (\n PARTITION BY address\n ORDER BY\n DATA :self_stake DESC\n ) AS RANK,\n DATA :governance_votes :: NUMBER AS num_governance_votes,\n DATA AS raw_metadata,\n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n {{ ref('bronze_api__get_validator_metadata') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__validators.sql", "original_file_path": "models/silver/silver__validators.sql", "name": "silver__validators", "alias": "validators", "checksum": {"name": "sha256", "checksum": "1ce9fe9de55912b084baf833543e93c642308c9e769169a5636eb07f5a8bbbaa"}, "tags": [], "refs": [["bronze_api__get_validator_metadata"]], "sources": [], "metrics": [], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACCOUNT_ADDRESS": {"name": "ACCOUNT_ADDRESS", "description": "The Cosmos address of the user / entity that operates the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DELEGATOR_SHARES": {"name": "DELEGATOR_SHARES", "description": "The number of tokens staked to the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SELF_DELEGATION": {"name": "SELF_DELEGATION", "description": "The number of ATOM tokens that the operator currently has staked with their own validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_DELEGATORS": {"name": "NUM_DELEGATORS", "description": "The number of wallets that stake their ATOM tokens with the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RATE": {"name": "RATE", "description": "The commission rate that the validator is currently charging.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RANK": {"name": "RANK", "description": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_GOVERNANCE_VOTES": {"name": "NUM_GOVERNANCE_VOTES", "description": "The number of governance proposals the validator has voted on during its lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__validators.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "table"}, "created_at": 1676048038.187413, "compiled_code": "\n\nSELECT\n address,\n 'cosmos' AS blockchain,\n 'flipside' AS creator,\n 'operator' AS label_type,\n 'validator' AS label_subtype,\n DATA :title :: STRING AS label,\n DATA :cons_address :: STRING AS project_name,\n DATA :acc_address :: STRING AS account_address,\n DATA :power :: NUMBER AS delegator_shares,\n DATA :self_stake :: NUMBER AS self_delegation,\n DATA :delegators :: NUMBER AS num_delegators,\n DATA :fee :: NUMBER AS rate,\n RANK() over (\n PARTITION BY address\n ORDER BY\n DATA :self_stake DESC\n ) AS RANK,\n DATA :governance_votes :: NUMBER AS num_governance_votes,\n DATA AS raw_metadata,\n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n COSMOS_DEV.bronze_api.get_validator_metadata", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.validators"}, "model.cosmos_models.silver__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.bronze__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__blocks"], "unique_id": "model.cosmos_models.silver__blocks", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"_unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\nSELECT\n block_id,\n COALESCE(\n DATA :result :block :header :time :: TIMESTAMP,\n DATA :block :header :time :: TIMESTAMP,\n DATA :result :block :header :timestamp :: TIMESTAMP,\n DATA :block :header :timestamp :: TIMESTAMP\n ) AS block_timestamp,\n 'cosmos' AS blockchain,\n COALESCE(\n DATA :result :block :header :chain_id :: STRING,\n DATA :block :header :chain_id :: STRING\n ) AS chain_id,\n COALESCE(\n ARRAY_SIZE(\n DATA :result :block :data :txs\n ) :: NUMBER,\n ARRAY_SIZE(\n DATA :block :data :txs\n ) :: NUMBER\n ) AS tx_count,\n COALESCE(\n DATA :result :block :header :proposer_address :: STRING,\n DATA :block :header :proposer_address :: STRING\n ) AS proposer_address,\n COALESCE(\n DATA :result :block :header :validators_hash :: STRING,\n DATA :block :header :validators_hash :: STRING\n ) AS validator_hash,\n COALESCE(\n DATA :result :block :header,\n DATA :block :header\n ) AS header,\n _inserted_timestamp,\n concat_ws(\n '-',\n chain_id,\n block_id\n ) AS _unique_key\nFROM\n {{ ref('bronze__blocks') }}\nWHERE\n VALUE :data :error IS NULL\n AND DATA :error IS NULL\n AND DATA :result :begin_block_events IS NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify ROW_NUMBER() over (\n PARTITION BY chain_id,\n block_id\n ORDER BY\n _inserted_timestamp DESC\n) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__blocks.sql", "original_file_path": "models/silver/silver__blocks.sql", "name": "silver__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "f733d3649f840a539b417dd93e3ce556a36b0c6e0b59e3126b8af2ce689da8e2"}, "tags": [], "refs": [["bronze__blocks"]], "sources": [], "metrics": [], "description": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "The name and version of the blockchain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of transactions that occurred during a block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER_ADDRESS": {"name": "PROPOSER_ADDRESS", "description": "The address of the validator that proposed the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VALIDATOR_HASH": {"name": "VALIDATOR_HASH", "description": "The root hash of the new validator set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__blocks.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "_unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.244457, "compiled_code": "\n\nSELECT\n block_id,\n COALESCE(\n DATA :result :block :header :time :: TIMESTAMP,\n DATA :block :header :time :: TIMESTAMP,\n DATA :result :block :header :timestamp :: TIMESTAMP,\n DATA :block :header :timestamp :: TIMESTAMP\n ) AS block_timestamp,\n 'cosmos' AS blockchain,\n COALESCE(\n DATA :result :block :header :chain_id :: STRING,\n DATA :block :header :chain_id :: STRING\n ) AS chain_id,\n COALESCE(\n ARRAY_SIZE(\n DATA :result :block :data :txs\n ) :: NUMBER,\n ARRAY_SIZE(\n DATA :block :data :txs\n ) :: NUMBER\n ) AS tx_count,\n COALESCE(\n DATA :result :block :header :proposer_address :: STRING,\n DATA :block :header :proposer_address :: STRING\n ) AS proposer_address,\n COALESCE(\n DATA :result :block :header :validators_hash :: STRING,\n DATA :block :header :validators_hash :: STRING\n ) AS validator_hash,\n COALESCE(\n DATA :result :block :header,\n DATA :block :header\n ) AS header,\n _inserted_timestamp,\n concat_ws(\n '-',\n chain_id,\n block_id\n ) AS _unique_key\nFROM\n COSMOS_DEV.bronze.blocks\nWHERE\n VALUE :data :error IS NULL\n AND DATA :error IS NULL\n AND DATA :result :begin_block_events IS NULL\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.blocks\n)\n\n\nqualify ROW_NUMBER() over (\n PARTITION BY chain_id,\n block_id\n ORDER BY\n _inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.blocks"}, "model.cosmos_models.silver__msgs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "silver", "fqn": ["cosmos_models", "silver", "silver__msgs"], "unique_id": "model.cosmos_models.silver__msgs", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\nWITH base_msgs AS (\n\n SELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n t.gas_used,\n t.gas_wanted,\n t.tx_succeeded,\n f.value AS msg,\n f.index :: INT AS msg_index,\n msg :type :: STRING AS msg_type,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'action',\n TRUE,\n FALSE\n ) AS is_action,\n NULLIF(\n (conditional_true_event(is_action) over (PARTITION BY tx_id\n ORDER BY\n msg_index ASC) -1),\n -1\n ) AS msg_group,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'module',\n TRUE,\n FALSE\n ) AS is_module,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :value :: STRING\n ) AS attribute_value,\n t._inserted_timestamp\n FROM\n {{ ref(\n 'silver__transactions'\n ) }}\n t,\n LATERAL FLATTEN(input => msgs) f\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n )\n{% endif %}\n),\nexec_actions AS (\n SELECT\n DISTINCT tx_id,\n msg_group\n FROM\n base_msgs\n WHERE\n msg_type = 'message'\n AND attribute_key = 'action'\n AND LOWER(attribute_value) LIKE '%exec%'\n),\nGROUPING AS (\n SELECT\n base_msgs.tx_id,\n base_msgs.msg_index,\n RANK() over(\n PARTITION BY base_msgs.tx_id,\n base_msgs.msg_group\n ORDER BY\n base_msgs.msg_index\n ) -1 AS msg_sub_group\n FROM\n base_msgs\n INNER JOIN exec_actions e\n ON base_msgs.tx_id = e.tx_id\n AND base_msgs.msg_group = e.msg_group\n WHERE\n base_msgs.is_module = 'TRUE'\n AND base_msgs.msg_type = 'message'\n),\nmsgs AS (\n SELECT\n block_id,\n block_timestamp,\n A.tx_id,\n tx_succeeded,\n msg_group,\n CASE\n WHEN msg_group IS NULL THEN NULL\n ELSE COALESCE(\n LAST_VALUE(\n b.msg_sub_group ignore nulls\n ) over(\n PARTITION BY A.tx_id,\n msg_group\n ORDER BY\n A.msg_index DESC rows unbounded preceding\n ),\n 0\n )\n END AS msg_sub_group,\n A.msg_index,\n msg_type,\n msg,\n concat_ws(\n '-',\n block_id,\n A.tx_id,\n A.msg_index\n ) AS unique_key,\n _inserted_timestamp\n FROM\n base_msgs A\n LEFT JOIN GROUPING b\n ON A.tx_id = b.tx_id\n AND A.msg_index = b.msg_index\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n msg :: OBJECT AS msg,\n unique_key,\n _inserted_timestamp\nFROM\n msgs", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "silver/silver__msgs.sql", "original_file_path": "models/silver/silver__msgs.sql", "name": "silver__msgs", "alias": "msgs", "checksum": {"name": "sha256", "checksum": "8231455b05f68045abe2be54bb3ab77f4321dab634cba0d83a887033d8b076f8"}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all messages associated to transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_SUB_GROUP": {"name": "MSG_SUB_GROUP", "description": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The flattened underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "The date and time at which the block or transaction was inserted in the bronze tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/silver/silver__msgs.yml", "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.417044, "compiled_code": "\n\nWITH base_msgs AS (\n\n SELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n t.gas_used,\n t.gas_wanted,\n t.tx_succeeded,\n f.value AS msg,\n f.index :: INT AS msg_index,\n msg :type :: STRING AS msg_type,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'action',\n TRUE,\n FALSE\n ) AS is_action,\n NULLIF(\n (conditional_true_event(is_action) over (PARTITION BY tx_id\n ORDER BY\n msg_index ASC) -1),\n -1\n ) AS msg_group,\n IFF(\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) = 'module',\n TRUE,\n FALSE\n ) AS is_module,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :key :: STRING\n ) AS attribute_key,\n TRY_BASE64_DECODE_STRING(\n msg :attributes [0] :value :: STRING\n ) AS attribute_value,\n t._inserted_timestamp\n FROM\n COSMOS_DEV.silver.transactions\n t,\n LATERAL FLATTEN(input => msgs) f\n\n\nWHERE\n _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.silver.msgs\n )\n\n),\nexec_actions AS (\n SELECT\n DISTINCT tx_id,\n msg_group\n FROM\n base_msgs\n WHERE\n msg_type = 'message'\n AND attribute_key = 'action'\n AND LOWER(attribute_value) LIKE '%exec%'\n),\nGROUPING AS (\n SELECT\n base_msgs.tx_id,\n base_msgs.msg_index,\n RANK() over(\n PARTITION BY base_msgs.tx_id,\n base_msgs.msg_group\n ORDER BY\n base_msgs.msg_index\n ) -1 AS msg_sub_group\n FROM\n base_msgs\n INNER JOIN exec_actions e\n ON base_msgs.tx_id = e.tx_id\n AND base_msgs.msg_group = e.msg_group\n WHERE\n base_msgs.is_module = 'TRUE'\n AND base_msgs.msg_type = 'message'\n),\nmsgs AS (\n SELECT\n block_id,\n block_timestamp,\n A.tx_id,\n tx_succeeded,\n msg_group,\n CASE\n WHEN msg_group IS NULL THEN NULL\n ELSE COALESCE(\n LAST_VALUE(\n b.msg_sub_group ignore nulls\n ) over(\n PARTITION BY A.tx_id,\n msg_group\n ORDER BY\n A.msg_index DESC rows unbounded preceding\n ),\n 0\n )\n END AS msg_sub_group,\n A.msg_index,\n msg_type,\n msg,\n concat_ws(\n '-',\n block_id,\n A.tx_id,\n A.msg_index\n ) AS unique_key,\n _inserted_timestamp\n FROM\n base_msgs A\n LEFT JOIN GROUPING b\n ON A.tx_id = b.tx_id\n AND A.msg_index = b.msg_index\n)\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n msg_group,\n msg_sub_group,\n msg_index,\n msg_type,\n msg :: OBJECT AS msg,\n unique_key,\n _inserted_timestamp\nFROM\n msgs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.silver.msgs"}, "model.cosmos_models.bronze_api__get_validator_metadata": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "bronze_api", "fqn": ["cosmos_models", "bronze_api", "bronze_api__get_validator_metadata"], "unique_id": "model.cosmos_models.bronze_api__get_validator_metadata", "raw_code": "{{ config(\n materialized = 'table'\n) }}\n\nWITH call AS (\n\n SELECT\n ethereum.streamline.udf_api(\n 'GET',\n 'https://api.cosmoscan.net/validators',{},{}\n ) AS resp,\n SYSDATE() AS _inserted_timestamp\n)\nSELECT\n i.value :operator_address :: STRING as address, \n i.value AS DATA,\n _inserted_timestamp\nFROM\n call,\n LATERAL FLATTEN(\n input => resp :data\n ) i", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "bronze_api/bronze_api__get_validator_metadata.sql", "original_file_path": "models/bronze_api/bronze_api__get_validator_metadata.sql", "name": "bronze_api__get_validator_metadata", "alias": "get_validator_metadata", "checksum": {"name": "sha256", "checksum": "fa8ab81dfd397d96e6842d4f5460ee18ceb9d58e6cb4877d6650085008ec26a6"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/bronze_api/bronze_api__get_validator_metadata.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "table"}, "created_at": 1676048037.9630551, "compiled_code": "\n\nWITH call AS (\n\n SELECT\n ethereum.streamline.udf_api(\n 'GET',\n 'https://api.cosmoscan.net/validators',{},{}\n ) AS resp,\n SYSDATE() AS _inserted_timestamp\n)\nSELECT\n i.value :operator_address :: STRING as address, \n i.value AS DATA,\n _inserted_timestamp\nFROM\n call,\n LATERAL FLATTEN(\n input => resp :data\n ) i", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.bronze_api.get_validator_metadata"}, "model.cosmos_models.core__fact_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "unique_key", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": ["block_timestamp::DATE"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_transactions"], "unique_id": "model.cosmos_models.core__fact_transactions", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = \"unique_key\",\n incremental_strategy = 'delete+insert',\n cluster_by = ['block_timestamp::DATE'],\n) }}\n\n\nWITH\n\n{% if is_incremental() %}\nmax_block_partition AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n {{ ref('silver__transactions') }}\n),\n{% endif %}\n\nfee AS (\n SELECT\n block_id, \n tx_id,\n attribute_value AS fee\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n attribute_key = 'fee'\n AND msg_type = 'tx'\n \n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n),\n\nspender AS (\n SELECT\n block_id, \n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS tx_from\n FROM\n {{ ref('silver__msg_attributes') }}\n WHERE\n attribute_key = 'acc_seq'\n\n{% if is_incremental() %}\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify(ROW_NUMBER() over(PARTITION BY tx_id\nORDER BY\n msg_index)) = 1\n),\n\nno_fee_tx_raw as (\n select \n block_id, \n tx_id, \n f.index,\n f.value: type ::string as event_type,\n try_base64_decode_string( f.value:attributes[0]:value) as recipient,\n try_base64_decode_string( f.value:attributes[1]:value) as sender ,\n try_base64_decode_string( f.value:attributes[2]:value) as amount_raw ,\n CASE \n WHEN amount_raw like '%uatom' AND amount_raw not like '%ibc%' \n THEN amount_raw \n ELSE '0uatom' \n END as amount \n\n FROM\n {{ ref('silver__transactions') }} , \n TABLE (flatten (input => msgs)) f\n \n WHERE \n tx_id NOT IN \n (select \n tx_id \n from fee\n )\n AND event_type = 'transfer'\n \n qualify row_number() over (partition by tx_id order by f.index asc) = 1 \n ),\n \nno_fee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n f.sender as tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n amount,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n {{ ref('silver__transactions') }} \n t\n INNER JOIN no_fee_tx_raw f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n \n\n),\n\nfee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n s.tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n fee,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n {{ ref('silver__transactions') }} \n t\n INNER JOIN fee f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n INNER JOIN spender s\n ON t.tx_id = s.tx_id\n AND t.block_id = s.block_id\n), \n\nfinal_transactions as (\nselect * \n from no_fee_transactions\n\nunion all \n\nselect * \n from fee_transactions\n)\n\n\nSELECT \n block_id,\n block_timestamp,\n tx_id,\n tx_from,\n tx_succeeded,\n codespace,\n fee, \n fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\n\nFROM final_transactions", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_transactions.sql", "original_file_path": "models/gold/core__fact_transactions.sql", "name": "core__fact_transactions", "alias": "fact_transactions", "checksum": {"name": "sha256", "checksum": "c14d728738b6a70e6c595f03ebd335aa29e8edd6ff60fcd579d6315bce646d98"}, "tags": [], "refs": [["silver__msg_attributes"], ["silver__msg_attributes"], ["silver__transactions"], ["silver__transactions"], ["silver__transactions"]], "sources": [], "metrics": [], "description": "Records of all transactions that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_FROM": {"name": "TX_FROM", "description": "The wallet address of the individual who initiated the transaction", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CODESPACE": {"name": "CODESPACE", "description": "Namespace for the code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FEE": {"name": "FEE", "description": "The fee is paid by the initiator of the transaction. Fee = gas * gas price.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "FEE_DENOM": {"name": "FEE_DENOM", "description": "The denominator of the transaction fee.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The amount of gas consumed by the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "GAS_WANTED": {"name": "GAS_WANTED", "description": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_CODE": {"name": "TX_CODE", "description": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_LOG": {"name": "TX_LOG", "description": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSGS": {"name": "MSGS", "description": "The underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_transactions.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "unique_key", "incremental_strategy": "delete+insert", "cluster_by": ["block_timestamp::DATE"]}, "created_at": 1676048038.46551, "compiled_code": "\n\n\nWITH\n\n\nmax_block_partition AS (\n\n SELECT\n MAX(\n _inserted_timestamp\n ) AS _inserted_timestamp\n FROM\n COSMOS_DEV.silver.transactions\n),\n\n\nfee AS (\n SELECT\n block_id, \n tx_id,\n attribute_value AS fee\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'fee'\n AND msg_type = 'tx'\n \n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.core.fact_transactions\n)\n\n),\n\nspender AS (\n SELECT\n block_id, \n tx_id,\n SPLIT_PART(\n attribute_value,\n '/',\n 0\n ) AS tx_from\n FROM\n COSMOS_DEV.silver.msg_attributes\n WHERE\n attribute_key = 'acc_seq'\n\n\nAND _inserted_timestamp :: DATE >= (\n SELECT\n MAX(_inserted_timestamp) :: DATE - 2\n FROM\n COSMOS_DEV.core.fact_transactions\n)\n\n\nqualify(ROW_NUMBER() over(PARTITION BY tx_id\nORDER BY\n msg_index)) = 1\n),\n\nno_fee_tx_raw as (\n select \n block_id, \n tx_id, \n f.index,\n f.value: type ::string as event_type,\n try_base64_decode_string( f.value:attributes[0]:value) as recipient,\n try_base64_decode_string( f.value:attributes[1]:value) as sender ,\n try_base64_decode_string( f.value:attributes[2]:value) as amount_raw ,\n CASE \n WHEN amount_raw like '%uatom' AND amount_raw not like '%ibc%' \n THEN amount_raw \n ELSE '0uatom' \n END as amount \n\n FROM\n COSMOS_DEV.silver.transactions , \n TABLE (flatten (input => msgs)) f\n \n WHERE \n tx_id NOT IN \n (select \n tx_id \n from fee\n )\n AND event_type = 'transfer'\n \n qualify row_number() over (partition by tx_id order by f.index asc) = 1 \n ),\n \nno_fee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n f.sender as tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n amount,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n COSMOS_DEV.silver.transactions \n t\n INNER JOIN no_fee_tx_raw f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n \n\n),\n\nfee_transactions AS (\nSELECT\n t.block_id,\n t.block_timestamp,\n t.tx_id,\n s.tx_from,\n tx_succeeded,\n codespace,\n COALESCE(\n fee,\n '0uatom'\n ) AS fee_raw,\n regexp_substr(fee_raw, '[0-9]+') as fee, \n regexp_substr(fee_raw, '[a-z]+') as fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\nFROM\n COSMOS_DEV.silver.transactions \n t\n INNER JOIN fee f\n ON t.tx_id = f.tx_id\n AND t.block_id = f.block_id\n INNER JOIN spender s\n ON t.tx_id = s.tx_id\n AND t.block_id = s.block_id\n), \n\nfinal_transactions as (\nselect * \n from no_fee_transactions\n\nunion all \n\nselect * \n from fee_transactions\n)\n\n\nSELECT \n block_id,\n block_timestamp,\n tx_id,\n tx_from,\n tx_succeeded,\n codespace,\n fee, \n fee_denom, \n gas_used,\n gas_wanted,\n tx_code,\n tx_log,\n msgs,\n _inserted_timestamp, \n unique_key\n\nFROM final_transactions", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_transactions"}, "model.cosmos_models.core__dim_tokens": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.cosmos_models.osmo.asset_metadata"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_tokens"], "unique_id": "model.cosmos_models.core__dim_tokens", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n 'cosmos' AS blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n alias,\n DECIMAL,\n raw_metadata, \n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n {{ source(\n 'osmo',\n 'asset_metadata'\n ) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__dim_tokens.sql", "original_file_path": "models/gold/core__dim_tokens.sql", "name": "core__dim_tokens", "alias": "dim_tokens", "checksum": {"name": "sha256", "checksum": "e4d2c1ca4007d49ba3ec1912931db6a26bf7bb5221c3a2873c1bc80fb5c64f5d"}, "tags": [], "refs": [], "sources": [["osmo", "asset_metadata"]], "metrics": [], "description": "Contains token metadata for assets on the Cosmos blockchain. This table was sourced from an API and may not contain every token.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ALIAS": {"name": "ALIAS", "description": "A secondary address for the token, where available", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DECIMAL": {"name": "DECIMAL", "description": "Divide amount by decimal to get the actual amount of currency being transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__dim_tokens.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.49044, "compiled_code": "\n\nSELECT\n 'cosmos' AS blockchain,\n address,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n alias,\n DECIMAL,\n raw_metadata, \n concat_ws(\n '-',\n address,\n creator,\n blockchain\n ) AS unique_key\nFROM\n osmosis.silver.asset_metadata", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_tokens"}, "model.cosmos_models.core__fact_msgs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_msgs"], "unique_id": "model.cosmos_models.core__fact_msgs", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n msg,\n unique_key\n\nFROM\n {{ ref('silver__msgs') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_msgs.sql", "original_file_path": "models/gold/core__fact_msgs.sql", "name": "core__fact_msgs", "alias": "fact_msgs", "checksum": {"name": "sha256", "checksum": "40e815aa41e33137e5adc3c34f721b68ddfb3c925daec1641a47554eb745d398"}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG": {"name": "MSG", "description": "The flattened underlying json from the messages or events within the transactions", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_msgs.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.511175, "compiled_code": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n msg,\n unique_key\n\nFROM\n COSMOS_DEV.silver.msgs", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_msgs"}, "model.cosmos_models.core__fact_blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_blocks"], "unique_id": "model.cosmos_models.core__fact_blocks", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT \n block_id, \n block_timestamp, \n blockchain,\n chain_id, \n tx_count, \n proposer_address, \n validator_hash\nFROM \n {{ ref('silver__blocks') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_blocks.sql", "original_file_path": "models/gold/core__fact_blocks.sql", "name": "core__fact_blocks", "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "b471a9e38561308ab755a708ea94238966ecf9fb128ecdde02ea451955c9d22a"}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "Records of all blocks that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "The name and version of the blockchain.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of transactions that occurred during a block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER_ADDRESS": {"name": "PROPOSER_ADDRESS", "description": "The address of the validator that proposed the block.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VALIDATOR_HASH": {"name": "VALIDATOR_HASH", "description": "The root hash of the new validator set.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_blocks.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.448523, "compiled_code": "\n\nSELECT \n block_id, \n block_timestamp, \n blockchain,\n chain_id, \n tx_count, \n proposer_address, \n validator_hash\nFROM \n COSMOS_DEV.silver.blocks", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_blocks"}, "model.cosmos_models.core__fact_msg_attributes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_msg_attributes"], "unique_id": "model.cosmos_models.core__fact_msg_attributes", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n attribute_index,\n attribute_key,\n attribute_value,\n unique_key\nFROM\n {{ ref('silver__msg_attributes') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_msg_attributes.sql", "original_file_path": "models/gold/core__fact_msg_attributes.sql", "name": "core__fact_msg_attributes", "alias": "fact_msg_attributes", "checksum": {"name": "sha256", "checksum": "629986f0ab12e12045eca0feb4d42947b5c4a87146ef7bc7eeaa1d36a11fb72d"}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "Records of all message attributes associated to messages that have occurred on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_GROUP": {"name": "MSG_GROUP", "description": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_INDEX": {"name": "MSG_INDEX", "description": "Short for \"message index,\" the position in which messages occur in a transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "MSG_TYPE": {"name": "MSG_TYPE", "description": "A string containing information about the type of message occurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_INDEX": {"name": "ATTRIBUTE_INDEX", "description": "The position in which attributes occur within a message", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_KEY": {"name": "ATTRIBUTE_KEY", "description": "The key from the key-value pair from the message attribute", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ATTRIBUTE_VALUE": {"name": "ATTRIBUTE_VALUE", "description": "The value from the key-value pair from the message attribute", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_msg_attributes.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.6198301, "compiled_code": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n CONCAT(\n msg_group,\n ':',\n msg_sub_group\n ) AS msg_group,\n msg_index,\n msg_type,\n attribute_index,\n attribute_key,\n attribute_value,\n unique_key\nFROM\n COSMOS_DEV.silver.msg_attributes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_msg_attributes"}, "model.cosmos_models.core__fact_governance_proposal_deposits": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_proposal_deposits"], "unique_id": "model.cosmos_models.core__fact_governance_proposal_deposits", "raw_code": "{{ config(\n materialized = 'view',\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'GOVERNANCE'\n }\n }\n }\n) }}\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n depositor, \n proposal_id, \n amount / POW(10, COALESCE(t.decimal, 0)) :: NUMBER AS amount, \n currency, \n t.decimal\nFROM {{ ref('silver__governance_proposal_deposits') }} g\nLEFT OUTER JOIN {{ ref('core__dim_tokens')}} t\nON g.currency = t.address", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_governance_proposal_deposits.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.sql", "name": "core__fact_governance_proposal_deposits", "alias": "fact_governance_proposal_deposits", "checksum": {"name": "sha256", "checksum": "de55c2c1eb9c39d65a0f6bfcec35c3029f53659a2f51de7b58f89fc6e4d6f374"}, "tags": [], "refs": [["silver__governance_proposal_deposits"], ["core__dim_tokens"]], "sources": [], "metrics": [], "description": "Records of all proposal deposits that have occurred on Cosmos, dating back to the genesis block. At least 250 ATOM must be deposited for a proposal to be voted on. The columns blockchain, chain_id, and tx_status will be deprecating soon.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DEPOSITOR": {"name": "DEPOSITOR", "description": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DECIMAL": {"name": "DECIMAL", "description": "Divide amount by decimal to get the actual amount of currency being transferred.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_governance_proposal_deposits.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}}, "created_at": 1676048038.600393, "compiled_code": "\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n depositor, \n proposal_id, \n amount / POW(10, COALESCE(t.decimal, 0)) :: NUMBER AS amount, \n currency, \n t.decimal\nFROM COSMOS_DEV.silver.governance_proposal_deposits g\nLEFT OUTER JOIN COSMOS_DEV.core.dim_tokens t\nON g.currency = t.address", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_proposal_deposits"}, "model.cosmos_models.core__dim_vote_options": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_vote_options"], "unique_id": "model.cosmos_models.core__dim_vote_options", "raw_code": "{{ config(\n materialized = 'view',\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'GOVERNANCE'\n }\n }\n }\n) }}\n\nSELECT \n DISTINCT vote_option AS vote_option, \n CASE \n WHEN vote_option = 1 THEN \n 'YES'\n WHEN vote_option = 2 THEN\n 'ABSTAIN'\n WHEN vote_option = 3 THEN\n 'NO'\n WHEN vote_option = 4 THEN\n 'NO WITH VETO'\n ELSE 'NULL'\n END AS description \n\nFROM {{ ref('silver__governance_votes') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__dim_vote_options.sql", "original_file_path": "models/gold/core__dim_vote_options.sql", "name": "core__dim_vote_options", "alias": "dim_vote_options", "checksum": {"name": "sha256", "checksum": "20fdc144a1be43c4bda82ad5dab876c5eef209574059a59c75cdffe5a162034e"}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "Dimensional table with the vote options on Cosmos and what they correspond to.", "columns": {"VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "This describes the vote option the user selected", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__dim_vote_options.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_vote_options.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}}, "created_at": 1676048038.640507, "compiled_code": "\n\nSELECT \n DISTINCT vote_option AS vote_option, \n CASE \n WHEN vote_option = 1 THEN \n 'YES'\n WHEN vote_option = 2 THEN\n 'ABSTAIN'\n WHEN vote_option = 3 THEN\n 'NO'\n WHEN vote_option = 4 THEN\n 'NO WITH VETO'\n ELSE 'NULL'\n END AS description \n\nFROM COSMOS_DEV.silver.governance_votes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_vote_options"}, "model.cosmos_models.core__fact_transfers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_transfers"], "unique_id": "model.cosmos_models.core__fact_transfers", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n unique_key\nFROM\n {{ ref('silver__transfers') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_transfers.sql", "original_file_path": "models/gold/core__fact_transfers.sql", "name": "core__fact_transfers", "alias": "fact_transfers", "checksum": {"name": "sha256", "checksum": "fd922b702bef5455f75502936f740c015a5b343e87b211f3d939939b6e6c7573"}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "Records of all transfers on Cosmos", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TRANSFER_TYPE": {"name": "TRANSFER_TYPE", "description": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SENDER": {"name": "SENDER", "description": "The wallet address of the individual sent tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "The amount that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CURRENCY": {"name": "CURRENCY", "description": "The currency that was used in the transaction message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RECEIVER": {"name": "RECEIVER", "description": "The wallet address of the individual received tokens in the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key for the table.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_transfers.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.646212, "compiled_code": "\n\nSELECT\n block_id,\n block_timestamp,\n tx_id,\n tx_succeeded,\n transfer_type,\n sender,\n amount,\n currency,\n receiver,\n unique_key\nFROM\n COSMOS_DEV.silver.transfers", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_transfers"}, "model.cosmos_models.core__fact_governance_votes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_votes"], "unique_id": "model.cosmos_models.core__fact_governance_votes", "raw_code": "{{ config(\n materialized = 'view',\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'GOVERNANCE'\n }\n }\n }\n) }}\n\nSELECT\n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded, \n voter, \n proposal_id, \n vote_option, \n vote_weight\nFROM {{ ref('silver__governance_votes') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_governance_votes.sql", "original_file_path": "models/gold/core__fact_governance_votes.sql", "name": "core__fact_governance_votes", "alias": "fact_governance_votes", "checksum": {"name": "sha256", "checksum": "0b0e7f30611fe97ec373adf3a09557a072a781a88e35d35bccdc609952958761"}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "Records of all votes on proposals.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "Address of the delegator that voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the delegator voted on the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_governance_votes.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}}, "created_at": 1676048038.528095, "compiled_code": "\n\nSELECT\n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded, \n voter, \n proposal_id, \n vote_option, \n vote_weight\nFROM COSMOS_DEV.silver.governance_votes", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_votes"}, "model.cosmos_models.core__fact_validators": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_validators"], "unique_id": "model.cosmos_models.core__fact_validators", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n address,\n blockchain,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n account_address,\n delegator_shares,\n self_delegation,\n num_delegators,\n rate,\n RANK,\n num_governance_votes,\n raw_metadata,\n unique_key\nFROM\n {{ ref('silver__validators') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_validators.sql", "original_file_path": "models/gold/core__fact_validators.sql", "name": "core__fact_validators", "alias": "fact_validators", "checksum": {"name": "sha256", "checksum": "1967239325c385166fa9d625633fb5c0a997497ac78dcfa3e4dba338f0048819"}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "A table that contains labels for and additional information about Cosmos Hub validators", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ACCOUNT_ADDRESS": {"name": "ACCOUNT_ADDRESS", "description": "The Cosmos address of the user / entity that operates the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "DELEGATOR_SHARES": {"name": "DELEGATOR_SHARES", "description": "The number of tokens staked to the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "SELF_DELEGATION": {"name": "SELF_DELEGATION", "description": "The number of ATOM tokens that the operator currently has staked with their own validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_DELEGATORS": {"name": "NUM_DELEGATORS", "description": "The number of wallets that stake their ATOM tokens with the validator.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RATE": {"name": "RATE", "description": "The commission rate that the validator is currently charging.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RANK": {"name": "RANK", "description": "The rank of the validator in the validator set. Rank is determined by the number of ATOM tokens staked to the validator", "meta": {}, "data_type": null, "quote": null, "tags": []}, "NUM_GOVERNANCE_VOTES": {"name": "NUM_GOVERNANCE_VOTES", "description": "The number of governance proposals the validator has voted on during its lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "RAW_METADATA": {"name": "RAW_METADATA", "description": "Additional details about the validator or token in json format.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "UNIQUE_KEY": {"name": "UNIQUE_KEY", "description": "The unique key of the table", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_validators.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.542837, "compiled_code": "\n\nSELECT\n address,\n blockchain,\n creator,\n label_type,\n label_subtype,\n label,\n project_name,\n account_address,\n delegator_shares,\n self_delegation,\n num_delegators,\n rate,\n RANK,\n num_governance_votes,\n raw_metadata,\n unique_key\nFROM\n COSMOS_DEV.silver.validators", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_validators"}, "model.cosmos_models.core__fact_governance_submit_proposal": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__fact_governance_submit_proposal"], "unique_id": "model.cosmos_models.core__fact_governance_submit_proposal", "raw_code": "{{ config(\n materialized = 'view',\n meta={\n 'database_tags':{\n 'table': {\n 'PURPOSE': 'GOVERNANCE'\n }\n }\n }\n) }}\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n proposer, \n proposal_id, \n proposal_type\nFROM {{ ref('silver__governance_submit_proposal') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__fact_governance_submit_proposal.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.sql", "name": "core__fact_governance_submit_proposal", "alias": "fact_governance_submit_proposal", "checksum": {"name": "sha256", "checksum": "d393297503e485f2af2098e8cc501ac5acb772c22332729207b593ce13a35e39"}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "Records of all proposal submissions on Cosmos, dating back to the genesis block.", "columns": {"BLOCK_ID": {"name": "BLOCK_ID", "description": "The block height the block was recorded at.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCK_TIMESTAMP": {"name": "BLOCK_TIMESTAMP", "description": "The date and time at which the block began.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "TX_SUCCEEDED": {"name": "TX_SUCCEEDED", "description": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSER": {"name": "PROPOSER", "description": "The address of the validator that submitted the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "Numeric ID that corresponds to the proposal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROPOSAL_TYPE": {"name": "PROPOSAL_TYPE", "description": "The type of proposal that was submitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__fact_governance_submit_proposal.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PURPOSE": "GOVERNANCE"}}}}, "created_at": 1676048038.586331, "compiled_code": "\n\nSELECT \n block_id, \n block_timestamp, \n tx_id, \n tx_succeeded,\n proposer, \n proposal_id, \n proposal_type\nFROM COSMOS_DEV.silver.governance_submit_proposal", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.fact_governance_submit_proposal"}, "model.cosmos_models.core__dim_labels": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "core", "fqn": ["cosmos_models", "gold", "core__dim_labels"], "unique_id": "model.cosmos_models.core__dim_labels", "raw_code": "{{ config(\n materialized = 'view'\n) }}\n\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n {{ ref('core__dim_tokens') }}\nUNION\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n {{ ref('core__fact_validators') }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "gold/core__dim_labels.sql", "original_file_path": "models/gold/core__dim_labels.sql", "name": "core__dim_labels", "alias": "dim_labels", "checksum": {"name": "sha256", "checksum": "845d749d79ef47c3e14bb6d0edf57da934cfb378902843cd7c2f61c8125d6ac8"}, "tags": [], "refs": [["core__dim_tokens"], ["core__fact_validators"]], "sources": [], "metrics": [], "description": "Contains all Flipside sourced labels for the Cosmos blockchain.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "Address unique to an individual wallet, validator, or token.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "In this table, always Cosmos. Used to join to cross-chain tables.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "CREATOR": {"name": "CREATOR", "description": "Name of the label creator - for now, this will always be \"Flipside.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_TYPE": {"name": "LABEL_TYPE", "description": "A broad category that describes what a label is representing.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL_SUBTYPE": {"name": "LABEL_SUBTYPE", "description": "Adds more detail to the label type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "LABEL": {"name": "LABEL", "description": "The label or name of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "The name of the project the label belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "cosmos_models://models/gold/core__dim_labels.yml", "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view"}, "created_at": 1676048038.572203, "compiled_code": "\n\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n COSMOS_DEV.core.dim_tokens\nUNION\nSELECT\n blockchain,\n creator,\n address,\n label_type,\n label_subtype,\n label,\n project_name\nFROM\n COSMOS_DEV.core.fact_validators", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.core.dim_labels"}, "model.cosmos_models.streamline__complete_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_transactions"], "unique_id": "model.cosmos_models.streamline__complete_transactions", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"tx_search\") }}'\n )\n ) A\n)\n\n{% if is_incremental() %},\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n \"tx_search\"\n ) }}\n JOIN meta b\n ON b.file_name = metadata$filename\n\n{% if is_incremental() %}\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__complete_transactions.sql", "original_file_path": "models/streamline/streamline__complete_transactions.sql", "name": "streamline__complete_transactions", "alias": "complete_transactions", "checksum": {"name": "sha256", "checksum": "e15687d764c7853956780e0449a0fcbbbb1a622af247ee4e9899cc3de700b6f3"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "tx_search"], ["bronze_streamline", "tx_search"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__complete_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1676048037.979744, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.tx_search'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_transactions)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.tx_search\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_transactions"}, "model.cosmos_models.streamline__validators_realtime": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__validators_realtime"], "unique_id": "model.cosmos_models.streamline__validators_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_validators(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\nSELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\nFROM\n {{ ref(\"streamline__blocks\") }}\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n {{ ref(\"streamline__complete_validators\") }}\nWHERE\n block_number > 13000000", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__validators_realtime.sql", "original_file_path": "models/streamline/streamline__validators_realtime.sql", "name": "streamline__validators_realtime", "alias": "validators_realtime", "checksum": {"name": "sha256", "checksum": "41cc482bddc49678b4188f16829af19af8fa33507bb90b8cb204eea6ec52d025"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__validators_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048037.989686, "compiled_code": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_validators\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.validators_realtime"}, "model.cosmos_models.streamline__transactions_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__transactions_history"], "unique_id": "model.cosmos_models.streamline__transactions_history", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\n{% for item in range(13) %}\n (\n\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\n FROM\n {{ ref(\"streamline__blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n {{ ref(\"streamline__complete_transactions\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n ORDER BY\n block_number\n ) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__transactions_history.sql", "original_file_path": "models/streamline/streamline__transactions_history.sql", "name": "streamline__transactions_history", "alias": "transactions_history", "checksum": {"name": "sha256", "checksum": "415658b2f45decaabd859e80b9808bbe71dd8c4653003fcb4c787133b0efd25a"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"], ["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__transactions_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048037.994169, "compiled_code": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_transactions\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.transactions_history"}, "model.cosmos_models.streamline__transactions_realtime": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__transactions_realtime"], "unique_id": "model.cosmos_models.streamline__transactions_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_transactions(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\nSELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\nFROM\n {{ ref(\"streamline__blocks\") }}\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n {{ ref(\"streamline__complete_transactions\") }}\nWHERE\n block_number > 13000000", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__transactions_realtime.sql", "original_file_path": "models/streamline/streamline__transactions_realtime.sql", "name": "streamline__transactions_realtime", "alias": "transactions_realtime", "checksum": {"name": "sha256", "checksum": "fe41f4bc134ba0b0f0d02ccffbc735fd88aa4861b6be6535e9e4b63161f152a7"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__transactions_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048038.002966, "compiled_code": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_transactions\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.transactions_realtime"}, "model.cosmos_models.streamline__validators_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__validators_history"], "unique_id": "model.cosmos_models.streamline__validators_history", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_validators(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\n{% for item in range(13) %}\n (\n\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\n FROM\n {{ ref(\"streamline__blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n {{ ref(\"streamline__complete_validators\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n ORDER BY\n block_number\n ) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__validators_history.sql", "original_file_path": "models/streamline/streamline__validators_history.sql", "name": "streamline__validators_history", "alias": "validators_history", "checksum": {"name": "sha256", "checksum": "40719b7fbeb17bd59507706e9dd8cdb928a840bf6fe26061eb00d09dca4b39bb"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"], ["streamline__blocks"], ["streamline__complete_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__validators_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048038.006221, "compiled_code": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_validators\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.validators_history"}, "model.cosmos_models.streamline__complete_blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_blocks"], "unique_id": "model.cosmos_models.streamline__complete_blocks", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"blocks\") }}'\n )\n ) A\n)\n\n{% if is_incremental() %},\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n \"blocks\"\n ) }}\n JOIN meta b\n ON b.file_name = metadata$filename\n\n{% if is_incremental() %}\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__complete_blocks.sql", "original_file_path": "models/streamline/streamline__complete_blocks.sql", "name": "streamline__complete_blocks", "alias": "complete_blocks", "checksum": {"name": "sha256", "checksum": "225e5491c90c835ca250339a50cba8ff31989de8c4d235ce3d845e0005c5bfeb"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "blocks"], ["bronze_streamline", "blocks"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__complete_blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1676048038.014395, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.blocks'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_blocks)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.blocks\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_blocks"}, "model.cosmos_models.streamline__complete_validators": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.surrogate_key"], "nodes": ["source.cosmos_models.bronze_streamline.validators", "source.cosmos_models.bronze_streamline.validators"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "id", "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"], "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__complete_validators"], "unique_id": "model.cosmos_models.streamline__complete_validators", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = \"id\",\n cluster_by = \"ROUND(block_number, -3)\",\n merge_update_columns = [\"id\"]\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"validators\") }}'\n )\n ) A\n)\n\n{% if is_incremental() %},\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n \"validators\"\n ) }}\n JOIN meta b\n ON b.file_name = metadata$filename\n\n{% if is_incremental() %}\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__complete_validators.sql", "original_file_path": "models/streamline/streamline__complete_validators.sql", "name": "streamline__complete_validators", "alias": "complete_validators", "checksum": {"name": "sha256", "checksum": "e18843dd877302a9cc2076435eec08463da7d38b36dbd6fcb0f9dc4fbb312e6f"}, "tags": [], "refs": [], "sources": [["bronze_streamline", "validators"], ["bronze_streamline", "validators"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__complete_validators.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "incremental", "unique_key": "id", "cluster_by": "ROUND(block_number, -3)", "merge_update_columns": ["id"]}, "created_at": 1676048038.01843, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified,\n file_name\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.COSMOS.validators'\n )\n ) A\n)\n\n,\nmax_date AS (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n COSMOS_DEV.streamline.complete_validators)\n \n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number,\n last_modified AS _inserted_timestamp\n FROM\n streamline.COSMOS.validators\n JOIN meta b\n ON b.file_name = metadata$filename\n\n\nWHERE\n b.last_modified > (\n SELECT\n max_INSERTED_TIMESTAMP\n FROM\n max_date\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.complete_validators"}, "model.cosmos_models.streamline__blocks_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks_history"], "unique_id": "model.cosmos_models.streamline__blocks_history", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\n{% for item in range(13) %}\n (\n\n SELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\n FROM\n {{ ref(\"streamline__blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n {{ ref(\"streamline__complete_blocks\") }}\n WHERE\n block_number BETWEEN {{ item * 1000000 + 1 }}\n AND {{(\n item + 1\n ) * 1000000 }}\n ORDER BY\n block_number\n ) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__blocks_history.sql", "original_file_path": "models/streamline/streamline__blocks_history.sql", "name": "streamline__blocks_history", "alias": "blocks_history", "checksum": {"name": "sha256", "checksum": "1f7308f951b66b5578d5038217252a07f389b7b3998427f05a60653320fa7179"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"], ["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__blocks_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048038.02201, "compiled_code": "\n\n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1\n AND 1000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 1000001\n AND 2000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 2000001\n AND 3000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 3000001\n AND 4000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 4000001\n AND 5000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 5000001\n AND 6000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 6000001\n AND 7000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 7000001\n AND 8000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 8000001\n AND 9000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 9000001\n AND 10000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 10000001\n AND 11000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 11000001\n AND 12000000\n ORDER BY\n block_number\n ) \n UNION ALL\n \n\n (\n\n SELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\n FROM\n COSMOS_DEV.streamline.blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n EXCEPT\n SELECT\n id,\n block_number\n FROM\n COSMOS_DEV.streamline.complete_blocks\n WHERE\n block_number BETWEEN 12000001\n AND 13000000\n ORDER BY\n block_number\n ) \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks_history"}, "model.cosmos_models.streamline__blocks_realtime": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.cosmos_models.if_data_call_function", "macro.dbt_utils.surrogate_key"], "nodes": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks_realtime"], "unique_id": "model.cosmos_models.streamline__blocks_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = if_data_call_function(\n func = \"{{this.schema}}.udf_get_cosmos_blocks(object_construct('sql_source', '{{this.identifier}}'))\",\n target = \"{{this.schema}}.{{this.identifier}}\"\n )\n) }}\n\nSELECT\n {{ dbt_utils.surrogate_key(\n ['block_number']\n ) }} AS id,\n block_number\nFROM\n {{ ref(\"streamline__blocks\") }}\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n {{ ref(\"streamline__complete_blocks\") }}\nWHERE\n block_number > 13000000", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__blocks_realtime.sql", "original_file_path": "models/streamline/streamline__blocks_realtime.sql", "name": "streamline__blocks_realtime", "alias": "blocks_realtime", "checksum": {"name": "sha256", "checksum": "b6d203e268fd57b4c00af133d7bd67beccca9aacb687b3cd1e149c9751cfbccd"}, "tags": [], "refs": [["streamline__blocks"], ["streamline__complete_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__blocks_realtime.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1676048038.0304792, "compiled_code": "\n\nSELECT\n md5(cast(coalesce(cast(block_number as TEXT), '') as TEXT)) AS id,\n block_number\nFROM\n COSMOS_DEV.streamline.blocks\nWHERE\n block_number > 13000000\n AND block_number IS NOT NULL\nEXCEPT\nSELECT\n id,\n block_number\nFROM\n COSMOS_DEV.streamline.complete_blocks\nWHERE\n block_number > 13000000", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks_realtime"}, "model.cosmos_models.streamline__blocks": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.run_query"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "streamline", "fqn": ["cosmos_models", "streamline", "streamline__blocks"], "unique_id": "model.cosmos_models.streamline__blocks", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['streamline_view']\n) }}\n\n\n{% if execute %}\n{% set height = run_query('SELECT streamline.udf_get_cosmos_chainhead()') %}\n{% set block_height = height.columns[0].values()[0] %}\n{% else %}\n{% set block_height = 13000000 %}\n{% endif %}\n\nSELECT\n height as block_number\nFROM\n TABLE(streamline.udtf_get_base_table({{block_height}}))\nWHERE\n height >= 5200791 -- Highest block the archive has available", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "streamline/streamline__blocks.sql", "original_file_path": "models/streamline/streamline__blocks.sql", "name": "streamline__blocks", "alias": "blocks", "checksum": {"name": "sha256", "checksum": "7d91ea04e464bf196948def629d934834e7df27669d02031c572f3ab74a21448"}, "tags": ["streamline_view"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/streamline/streamline__blocks.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns", "materialized": "view", "tags": ["streamline_view"]}, "created_at": 1676048038.034585, "compiled_code": "\n\n\n\n\n\n\n\nSELECT\n height as block_number\nFROM\n TABLE(streamline.udtf_get_base_table(14027373))\nWHERE\n height >= 5200791 -- Highest block the archive has available", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.streamline.blocks"}, "operation.cosmos_models.cosmos_models-on-run-start-0": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.cosmos_models.create_sps"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_models-on-run-start-0", "fqn": ["cosmos_models", "hooks", "cosmos_models-on-run-start-0"], "unique_id": "operation.cosmos_models.cosmos_models-on-run-start-0", "raw_code": "{{ create_sps() }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "hooks/cosmos_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "name": "cosmos_models-on-run-start-0", "alias": "", "checksum": {"name": "sha256", "checksum": "778de0bb22cc74a10eae0ce8b0dd0c369b7b23710e94b47fcae660de68a8df34"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/./dbt_project.yml/hooks/cosmos_models-on-run-start-0.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns"}, "created_at": 1676048038.0440571, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 0}, "operation.cosmos_models.cosmos_models-on-run-start-1": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.cosmos_models.create_udfs"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_models-on-run-start-1", "fqn": ["cosmos_models", "hooks", "cosmos_models-on-run-start-1"], "unique_id": "operation.cosmos_models.cosmos_models-on-run-start-1", "raw_code": "{{ create_udfs() }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "hooks/cosmos_models-on-run-start-1.sql", "original_file_path": "./dbt_project.yml", "name": "cosmos_models-on-run-start-1", "alias": "", "checksum": {"name": "sha256", "checksum": "778de0bb22cc74a10eae0ce8b0dd0c369b7b23710e94b47fcae660de68a8df34"}, "tags": ["on-run-start"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/./dbt_project.yml/hooks/cosmos_models-on-run-start-1.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns"}, "created_at": 1676048038.07151, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 1}, "operation.cosmos_models.cosmos_models-on-run-end-0": {"compiled": true, "resource_type": "operation", "depends_on": {"macros": ["macro.cosmos_models.apply_meta_as_tags"], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "sync_all_columns", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "copy_grants": true, "post-hook": [], "pre-hook": []}, "database": "COSMOS_DEV", "schema": "cosmos_models-on-run-end-0", "fqn": ["cosmos_models", "hooks", "cosmos_models-on-run-end-0"], "unique_id": "operation.cosmos_models.cosmos_models-on-run-end-0", "raw_code": "{{ apply_meta_as_tags(results) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "hooks/cosmos_models-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "name": "cosmos_models-on-run-end-0", "alias": "", "checksum": {"name": "sha256", "checksum": "778de0bb22cc74a10eae0ce8b0dd0c369b7b23710e94b47fcae660de68a8df34"}, "tags": ["on-run-end"], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/./dbt_project.yml/hooks/cosmos_models-on-run-end-0.sql", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "sync_all_columns"}, "created_at": 1676048038.075158, "compiled_code": "\n \n \n \n \n \n \n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "index": 0}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes_BLOCK_ID.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_BLOCK_ID", "alias": "msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1161332, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT", "alias": "msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_efe82c7be91b1b413fbb73b28d2e0191"}, "created_at": 1676048038.116979, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_BLOCK_TIMESTAMP", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.122804, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_a808db0b93a04feecab6760cc9838acf"}, "created_at": 1676048038.123574, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.msg_attributes\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.msg_attributes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_55e6bbe28faf0c3e3d095ad6d9901cc8"}, "created_at": 1676048038.1350882, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes_TX_ID.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_TX_ID", "alias": "msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1371891, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR", "alias": "msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_39cd8196f183cb993be2e6d4a8a38b80"}, "created_at": 1676048038.1378639, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT", "alias": "msg_attributes_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ed1635c0ddf306788271bff3c0d0cf20"}, "created_at": 1676048038.1399932, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_MSG_GROUP", "column_name": "MSG_GROUP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_SUB_GROUP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT", "alias": "msg_attributes_MSG_SUB_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_63d96ef0480cccadb6f3ddb5706cbd0b"}, "created_at": 1676048038.142494, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_SUB_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_MSG_SUB_GROUP", "column_name": "MSG_SUB_GROUP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_MSG_INDEX"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes_MSG_INDEX.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_MSG_INDEX", "alias": "msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes_MSG_INDEX.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1445792, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere MSG_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT", "alias": "msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0cae326d42a7e9b4569264d0f717d7cc"}, "created_at": 1676048038.145248, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes_MSG_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes_MSG_TYPE.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes_MSG_TYPE", "alias": "msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes_MSG_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.147466, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere MSG_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR", "alias": "msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0553e1806b9ae2660d48a463d77dc376"}, "created_at": 1676048038.1481228, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT"], "column_name": "MSG", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT", "alias": "msg_attributes_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c1734b3114d474b1f12c404b60225d42"}, "created_at": 1676048038.150242, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG'\n and\n relation_column_type not in ('OBJECT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes_MSG", "column_name": "MSG", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msg_attributes__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msg_attributes__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "not_null_silver__msg_attributes__INSERTED_TIMESTAMP", "alias": "msg_attributes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/not_null_silver__msg_attributes__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.152066, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msg_attributes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msg_attributes", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": {"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__msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msg_attributes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3d348b277a77b25792ff2d847849ea2c"}, "created_at": 1676048038.1528478, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_KEY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ATTRIBUTE_VALUE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msg_attributes", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__msg_attributes')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff.sql", "original_file_path": "models/silver/silver__msg_attributes.yml", "name": "dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY", "alias": "msg_attributes_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msg_attributes.yml/dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_f21f10ddf47e0cc414d4c8b8cdea61ff"}, "created_at": 1676048038.154659, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.msg_attributes\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.msg_attributes_UNIQUE_KEY", "column_name": null, "file_key_name": "models.silver__msg_attributes"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_BLOCK_ID.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_BLOCK_ID", "alias": "governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1607108, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d30f5fced365b4a2efe5e4dc8b48df6b"}, "created_at": 1676048038.1613781, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_BLOCK_TIMESTAMP", "alias": "governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1634922, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_325a163bc8a8b27d266e579d6e684cbe"}, "created_at": 1676048038.1641338, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_TX_ID.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_TX_ID", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.1660779, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_32cc87be592cec35929f6e2b9327853f"}, "created_at": 1676048038.166718, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_TX_SUCCEEDED", "alias": "governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.16879, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN", "alias": "governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_569111d10867a813dcb1fb5f8e972f28"}, "created_at": 1676048038.1694221, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_VOTER"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_VOTER.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_VOTER", "alias": "governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_VOTER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.17137, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere VOTER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_VOTER", "column_name": "VOTER", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR", "alias": "governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_81460127a6d5e60532b03c502603a540"}, "created_at": 1676048038.172012, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOTER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_VOTER", "column_name": "VOTER", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_PROPOSAL_ID.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_PROPOSAL_ID", "alias": "governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.174099, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7402637d31fdf3d8a1f9c2cba0c353a8"}, "created_at": 1676048038.174747, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes_VOTE_OPTION"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes_VOTE_OPTION.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes_VOTE_OPTION", "alias": "governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes_VOTE_OPTION.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.177096, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere VOTE_OPTION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes_VOTE_OPTION", "column_name": "VOTE_OPTION", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT", "alias": "governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2f088f5d0e38475dea1411b3f327d7ee"}, "created_at": 1676048038.17774, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOTE_OPTION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes_VOTE_OPTION", "column_name": "VOTE_OPTION", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_votes__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_votes__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "not_null_silver__governance_votes__INSERTED_TIMESTAMP", "alias": "governance_votes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/not_null_silver__governance_votes__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.17983, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_votes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_votes", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": {"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__governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_votes", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9f26f72e8dca2a85506311ecdae8f4b5"}, "created_at": 1676048038.180468, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_WEIGHT' 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 \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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_votes", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID", "PROPOSAL_ID", "VOTER", "VOTE_OPTION"], "model": "{{ get_where_subquery(ref('silver__governance_votes')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_votes"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b200d0eefdb9deeeb4546197ffdbc565", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b200d0eefdb9deeeb4546197ffdbc565\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_b200d0eefdb9deeeb4546197ffdbc565.sql", "original_file_path": "models/silver/silver__governance_votes.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION", "alias": "governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_votes.yml/dbt_utils_unique_combination_o_b200d0eefdb9deeeb4546197ffdbc565.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_b200d0eefdb9deeeb4546197ffdbc565"}, "created_at": 1676048038.182409, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID, PROPOSAL_ID, VOTER, VOTE_OPTION\n from COSMOS_DEV.silver.governance_votes\n group by TX_ID, PROPOSAL_ID, VOTER, VOTE_OPTION\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.governance_votes_TX_ID", "column_name": null, "file_key_name": "models.silver__governance_votes"}, "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_ADDRESS.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_ADDRESS", "alias": "validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.187847, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR", "alias": "validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7bb749250b95dff100248be04784cfd7"}, "created_at": 1676048038.188533, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_BLOCKCHAIN"], "unique_id": "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_BLOCKCHAIN.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_BLOCKCHAIN", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.190689, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9815b3637b428f3cb0d61c0ade025f77"}, "created_at": 1676048038.191328, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCKCHAIN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["cosmos"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos", "alias": "validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5e0fa4f9601d2514eeab6e3c65a053bf"}, "created_at": 1676048038.193429, "compiled_code": "\n\nwith all_values as (\n\n select\n BLOCKCHAIN as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('cosmos' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_set_silver.validators_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_CREATOR"], "unique_id": "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_CREATOR.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_CREATOR", "alias": "validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_CREATOR.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.198134, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere CREATOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_CREATOR", "column_name": "CREATOR", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CREATOR", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR", "alias": "validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_413e5adade88f8adb9e1957905098e58"}, "created_at": 1676048038.1987882, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'CREATOR'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_CREATOR", "column_name": "CREATOR", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_LABEL_TYPE.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_LABEL_TYPE", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_LABEL_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.200918, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere LABEL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_56a12fbe05ddbd63185fcaaea56a89aa"}, "created_at": 1676048038.201594, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["operator"], "column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator", "alias": "validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8e647e9c5f9573af294584b1b89cac71"}, "created_at": 1676048038.203755, "compiled_code": "\n\nwith all_values as (\n\n select\n LABEL_TYPE as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('operator' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_set_silver.validators_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_LABEL_SUBTYPE.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_LABEL_SUBTYPE", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_LABEL_SUBTYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.20589, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere LABEL_SUBTYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c80c947000cee46c5a9289cc0ac66186"}, "created_at": 1676048038.206532, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL_SUBTYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": {"test_metadata": {"name": "expect_column_values_to_be_in_set", "kwargs": {"value_set": ["validator"], "column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_set_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_set(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator", "alias": "validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_38a742a9f43f14616d945eacf27799f7"}, "created_at": 1676048038.208638, "compiled_code": "\n\nwith all_values as (\n\n select\n LABEL_SUBTYPE as value_field\n\n from COSMOS_DEV.silver.validators\n \n\n),\nset_values as (\n\n select\n cast('validator' as TEXT) as value_field\n \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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_set_silver.validators_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_LABEL"], "unique_id": "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_LABEL.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_LABEL", "alias": "validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.211185, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere LABEL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_LABEL", "column_name": "LABEL", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "LABEL", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR", "alias": "validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_de1976eae2545d87a603ece6d2c109b5"}, "created_at": 1676048038.211822, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'LABEL'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_LABEL", "column_name": "LABEL", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_PROJECT_NAME"], "unique_id": "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_PROJECT_NAME.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_PROJECT_NAME", "alias": "validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_PROJECT_NAME.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.2139971, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR", "alias": "validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_034451c95fa41a6934b414c0de483063"}, "created_at": 1676048038.214636, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'PROJECT_NAME'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_ACCOUNT_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_ACCOUNT_ADDRESS.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_ACCOUNT_ADDRESS", "alias": "validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_ACCOUNT_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.2167418, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere ACCOUNT_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_ACCOUNT_ADDRESS", "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR", "alias": "validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_17ce23edcfa8e8589beec84f666848f1"}, "created_at": 1676048038.2174091, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'ACCOUNT_ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_ACCOUNT_ADDRESS", "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_DELEGATOR_SHARES"], "unique_id": "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_DELEGATOR_SHARES.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_DELEGATOR_SHARES", "alias": "validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_DELEGATOR_SHARES.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.2195158, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere DELEGATOR_SHARES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_DELEGATOR_SHARES", "column_name": "DELEGATOR_SHARES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT", "alias": "validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2b9d08561d823ac0bbb1fc5261033b53"}, "created_at": 1676048038.2201731, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'DELEGATOR_SHARES'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_DELEGATOR_SHARES", "column_name": "DELEGATOR_SHARES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_SELF_DELEGATION"], "unique_id": "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_SELF_DELEGATION.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_SELF_DELEGATION", "alias": "validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_SELF_DELEGATION.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.222262, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere SELF_DELEGATION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_SELF_DELEGATION", "column_name": "SELF_DELEGATION", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT", "alias": "validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f3b40f5cecbd7ebfeb95589b115637df"}, "created_at": 1676048038.222921, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'SELF_DELEGATION'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_SELF_DELEGATION", "column_name": "SELF_DELEGATION", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_NUM_DELEGATORS"], "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_NUM_DELEGATORS.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_NUM_DELEGATORS", "alias": "validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_NUM_DELEGATORS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.224998, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere NUM_DELEGATORS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_NUM_DELEGATORS", "column_name": "NUM_DELEGATORS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT", "alias": "validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9d45a3078b27df6df0881d58360325e5"}, "created_at": 1676048038.2256389, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'NUM_DELEGATORS'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_NUM_DELEGATORS", "column_name": "NUM_DELEGATORS", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RATE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RATE"], "unique_id": "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_RATE.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_RATE", "alias": "validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_RATE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.228281, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere RATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_RATE", "column_name": "RATE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RATE", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT", "alias": "validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_059e6b3c4c7f671e566648deb67320e5"}, "created_at": 1676048038.228946, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'RATE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_RATE", "column_name": "RATE", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RANK", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RANK"], "unique_id": "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_RANK.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_RANK", "alias": "validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_RANK.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.231277, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere RANK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_RANK", "column_name": "RANK", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "RANK", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT", "alias": "validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f5ecf8089259079f4fa6b478084a2aaa"}, "created_at": 1676048038.2319381, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'RANK'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_RANK", "column_name": "RANK", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_NUM_GOVERNANCE_VOTES"], "unique_id": "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_NUM_GOVERNANCE_VOTES.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_NUM_GOVERNANCE_VOTES", "alias": "validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_NUM_GOVERNANCE_VOTES.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.234117, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere NUM_GOVERNANCE_VOTES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_NUM_GOVERNANCE_VOTES", "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT", "alias": "validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f3805541007648f3e5264b66e7629ca9"}, "created_at": 1676048038.2347672, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'NUM_GOVERNANCE_VOTES'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_NUM_GOVERNANCE_VOTES", "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_RAW_METADATA"], "unique_id": "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_RAW_METADATA.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_RAW_METADATA", "alias": "validators_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_RAW_METADATA.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.23714, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere RAW_METADATA is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_RAW_METADATA", "column_name": "RAW_METADATA", "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__validators_UNIQUE_KEY.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "not_null_silver__validators_UNIQUE_KEY", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/not_null_silver__validators_UNIQUE_KEY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.237875, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.validators\nwhere UNIQUE_KEY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.validators_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_761f6d984685b2a0d36107d182e599e2"}, "created_at": 1676048038.238559, "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('BLOCKCHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL_SUBTYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LABEL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCOUNT_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELEGATOR_SHARES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('SELF_DELEGATION' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_DELEGATORS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RATE' as TEXT) as relation_column,\n cast('NUMBER' 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('NUM_GOVERNANCE_VOTES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RAW_METADATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'UNIQUE_KEY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.validators_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.silver__validators"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__validators')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__validators"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4.sql", "original_file_path": "models/silver/silver__validators.yml", "name": "dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY", "alias": "validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__validators.yml/dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_0bc77c5c337c620ac846e28ff1f2efd4"}, "created_at": 1676048038.241107, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.validators\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.validators_UNIQUE_KEY", "column_name": null, "file_key_name": "models.silver__validators"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_BLOCK_ID.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_ID", "alias": "blocks_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.24483, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCK_TIMESTAMP", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.245478, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_59f17192e0f2a3ba8e68b2c9a7ff0692"}, "created_at": 1676048038.2467709, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.blocks\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2ee4d8ce0368be721e1f5e161b194f27"}, "created_at": 1676048038.2503018, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_BLOCKCHAIN"], "unique_id": "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_BLOCKCHAIN.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_BLOCKCHAIN", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_BLOCKCHAIN.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.252438, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR", "alias": "blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c04728f705e33131533b5963a999d26d"}, "created_at": 1676048038.253087, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'BLOCKCHAIN'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_CHAIN_ID"], "unique_id": "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_CHAIN_ID.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_CHAIN_ID", "alias": "blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_CHAIN_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.255209, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere CHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_CHAIN_ID", "column_name": "CHAIN_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR", "alias": "blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5f249e503d738719b2c03025e42e2b0a"}, "created_at": 1676048038.255851, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'CHAIN_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_CHAIN_ID", "column_name": "CHAIN_ID", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_TX_COUNT"], "unique_id": "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_TX_COUNT.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_TX_COUNT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_TX_COUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.257965, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_TX_COUNT", "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT", "alias": "blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_57647135d3191ca6bcc33dccc86d30b7"}, "created_at": 1676048038.25861, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'TX_COUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_TX_COUNT", "column_name": "TX_COUNT", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_PROPOSER_ADDRESS"], "unique_id": "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_PROPOSER_ADDRESS.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_PROPOSER_ADDRESS", "alias": "blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_PROPOSER_ADDRESS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.2606778, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere PROPOSER_ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_PROPOSER_ADDRESS", "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR", "alias": "blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e33a9da8fca5d9e7e3b70a44e100360a"}, "created_at": 1676048038.2613142, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'PROPOSER_ADDRESS'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_PROPOSER_ADDRESS", "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks_VALIDATOR_HASH"], "unique_id": "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks_VALIDATOR_HASH.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks_VALIDATOR_HASH", "alias": "blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks_VALIDATOR_HASH.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.263606, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere VALIDATOR_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks_VALIDATOR_HASH", "column_name": "VALIDATOR_HASH", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR", "alias": "blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2519c7234a219fa759de7f5c33112c3e"}, "created_at": 1676048038.264299, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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 = 'VALIDATOR_HASH'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks_VALIDATOR_HASH", "column_name": "VALIDATOR_HASH", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__blocks__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__blocks__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "not_null_silver__blocks__INSERTED_TIMESTAMP", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/not_null_silver__blocks__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.266773, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.blocks\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.blocks", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": {"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__blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_bf65ab6ab39fe0c1d3b520cc329b4169"}, "created_at": 1676048038.267431, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCKCHAIN' 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('TX_COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER_ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALIDATOR_HASH' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('HEADER' 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('_UNIQUE_KEY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.blocks", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__blocks"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY", "alias": "blocks", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_37d4e2bd4d05fb35548425aabdc2cf67"}, "created_at": 1676048038.26945, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _UNIQUE_KEY\n from COSMOS_DEV.silver.blocks\n group by _UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.blocks", "column_name": null, "file_key_name": "models.silver__blocks"}, "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": {"test_metadata": {"name": "sequence_gaps", "kwargs": {"column_name": "block_ID", "model": "{{ get_where_subquery(ref('silver__blocks')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.cosmos_models.test_sequence_gaps", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__blocks"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "BLOCK_TIMESTAMP <= CURRENT_DATE - 1", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "sequence_gaps_silver", "fqn": ["cosmos_models", "silver", "sequence_gaps_silver__blocks_block_ID"], "unique_id": "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e", "raw_code": "{{ test_sequence_gaps(**_dbt_generic_test_kwargs) }}{{ config(where=\"BLOCK_TIMESTAMP <= CURRENT_DATE - 1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "sequence_gaps_silver__blocks_block_ID.sql", "original_file_path": "models/silver/silver__blocks.yml", "name": "sequence_gaps_silver__blocks_block_ID", "alias": "blocks_block_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__blocks.yml/sequence_gaps_silver__blocks_block_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "BLOCK_TIMESTAMP <= CURRENT_DATE - 1"}, "created_at": 1676048038.2716212, "compiled_code": "WITH source AS (\n SELECT\n \n block_ID,\n LAG(\n block_ID,\n 1\n ) over (\n \n ORDER BY\n block_ID ASC\n ) AS prev_block_ID\n FROM\n (select * from COSMOS_DEV.silver.blocks where BLOCK_TIMESTAMP <= CURRENT_DATE - 1) dbt_subquery\n)\nSELECT\n \n prev_block_ID,\n block_ID,\n block_ID - prev_block_ID\n - 1 AS gap\nFROM\n source\nWHERE\n block_ID - prev_block_ID <> 1\nORDER BY\n gap DESC ", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.sequence_gaps_silver.blocks_block_ID", "column_name": null, "file_key_name": "models.silver__blocks"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_BLOCK_ID.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_ID", "alias": "transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.2769809, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT", "alias": "transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c9eb1ace502326f57acb4c63f6f721ea"}, "created_at": 1676048038.277646, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_BLOCK_TIMESTAMP", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.27971, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_7e7ddbc9b4a7dbd76c2af79a27effcdb"}, "created_at": 1676048038.280363, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.transactions\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_867039df339fcae87e7a780c6020a0eb"}, "created_at": 1676048038.284239, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_TX_ID.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_ID", "alias": "transactions_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.286623, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_GAS_USED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_GAS_USED.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_GAS_USED", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_GAS_USED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.287329, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere GAS_USED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT", "alias": "transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0e2b2dda75a879bf3be8005c2ae5de07"}, "created_at": 1676048038.2879739, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'GAS_USED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_GAS_WANTED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_GAS_WANTED.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_GAS_WANTED", "alias": "transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_GAS_WANTED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.290539, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere GAS_WANTED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_GAS_WANTED", "column_name": "GAS_WANTED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT", "alias": "transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_dc90aefd011b313913b2f97fe2b841d0"}, "created_at": 1676048038.291189, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'GAS_WANTED'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_GAS_WANTED", "column_name": "GAS_WANTED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_SUCCEEDED", "alias": "transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.293859, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN", "alias": "transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f9fc390efda16d57dd2d2515218f7ada"}, "created_at": 1676048038.294553, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_CODE"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_TX_CODE.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_CODE", "alias": "transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_CODE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.296993, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere TX_CODE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_TX_CODE", "column_name": "TX_CODE", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT", "alias": "transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9157d02351e50792795d30454298d1a0"}, "created_at": 1676048038.29768, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_CODE'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_TX_CODE", "column_name": "TX_CODE", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSGS", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_MSGS"], "unique_id": "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_MSGS.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_MSGS", "alias": "transactions_MSGS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_MSGS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.300006, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere MSGS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_MSGS", "column_name": "MSGS", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions_TX_LOG"], "unique_id": "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions_TX_LOG.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions_TX_LOG", "alias": "transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions_TX_LOG.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3006358, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere TX_LOG is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions_TX_LOG", "column_name": "TX_LOG", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR", "alias": "transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a48e8283bf9585d1e6246f54cc56d67e"}, "created_at": 1676048038.301258, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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 = 'TX_LOG'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions_TX_LOG", "column_name": "TX_LOG", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transactions__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transactions__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "not_null_silver__transactions__INSERTED_TIMESTAMP", "alias": "transactions", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/not_null_silver__transactions__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3039858, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transactions\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transactions", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": {"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__transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transactions", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3e92cb1347549a26c356b57f7b1afc07"}, "created_at": 1676048038.3048031, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CODESPACE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_USED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAS_WANTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_CODE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_LOG' 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('UNIQUE_KEY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transactions", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transactions"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__transactions')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transactions"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854.sql", "original_file_path": "models/silver/silver__transactions.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY", "alias": "transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transactions.yml/dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_f14d5fc63508428ce9841fded0411854"}, "created_at": 1676048038.306908, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.transactions\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.transactions_UNIQUE_KEY", "column_name": null, "file_key_name": "models.silver__transactions"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_BLOCK_ID.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_BLOCK_ID", "alias": "governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.310673, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3fe80b7c3dfe7c081b01fe177f08d178"}, "created_at": 1676048038.311471, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP", "alias": "governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.313874, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1deb546d664317f6e747b5ed94b67814"}, "created_at": 1676048038.314904, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_TX_ID.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_TX_ID", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.317021, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1b128ad46be2bc141819573ef5772124"}, "created_at": 1676048038.318228, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_TX_SUCCEEDED", "alias": "governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3202949, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN", "alias": "governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b1dd4cd0f7ca3d1d33f5d8bbe1c75884"}, "created_at": 1676048038.321057, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_DEPOSITOR"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_DEPOSITOR.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_DEPOSITOR", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_DEPOSITOR.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.323136, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere DEPOSITOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_de3be1c9b784164a2472cbc0ca3b80d1"}, "created_at": 1676048038.3240168, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'DEPOSITOR'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "cosmos1[0-9a-z]{38,38}", "column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_", "alias": "governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_69e193b875cdea8d23b376929c565c12"}, "created_at": 1676048038.326456, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(DEPOSITOR, 'cosmos1[0-9a-z]{38,38}', 1, 1)\n\n\n > 0\n as expression\n\n\n from COSMOS_DEV.silver.governance_proposal_deposits\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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.governance_proposal_deposits_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_PROPOSAL_ID.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_PROPOSAL_ID", "alias": "governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.335104, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_31cbb2ea10551dc878f6fee5e434a018"}, "created_at": 1676048038.3357801, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_AMOUNT"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_AMOUNT.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_AMOUNT", "alias": "governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.338593, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT", "alias": "governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_145ea21160c3d255222e217c51e4ac30"}, "created_at": 1676048038.339253, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits_CURRENCY"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_proposal_deposits_CURRENCY.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits_CURRENCY", "alias": "governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_proposal_deposits_CURRENCY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3414679, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere CURRENCY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR", "alias": "governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f92b5d5efb24b1ce5fde433e6e7b4b93"}, "created_at": 1676048038.342113, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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 = 'CURRENCY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP", "alias": "governance_proposal_deposits", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__governance_pr_0742a89ee10503a4405194e6683e7a0f"}, "created_at": 1676048038.344797, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_proposal_deposits\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_proposal_deposits", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": {"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__governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_proposal_deposits", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c394b2be3af4d54ef0652d12879daf46"}, "created_at": 1676048038.345477, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSITOR' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_proposal_deposits", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID"], "model": "{{ get_where_subquery(ref('silver__governance_proposal_deposits')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194.sql", "original_file_path": "models/silver/silver__governance_proposal_deposits.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID", "alias": "governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_proposal_deposits.yml/dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_fdaa434c1cb3a07c6428eb0f5af83194"}, "created_at": 1676048038.347946, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID\n from COSMOS_DEV.silver.governance_proposal_deposits\n group by TX_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.governance_proposal_deposits_TX_ID", "column_name": null, "file_key_name": "models.silver__governance_proposal_deposits"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_BLOCK_ID.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_ID", "alias": "transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3519738, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT", "alias": "transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d14f8e06b211ab74650e6ffd3f87952f"}, "created_at": 1676048038.35291, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_BLOCK_TIMESTAMP", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.355374, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_0391e7977e8cebd188a1d5fa8d5e5c1d"}, "created_at": 1676048038.356197, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.transfers\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aaa4d09592b0234773f61be8de1236a1"}, "created_at": 1676048038.3593972, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_TX_ID.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_TX_ID", "alias": "transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.361367, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR", "alias": "transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e6811ad69d0d534b34fc03d2bff51b3b"}, "created_at": 1676048038.3621151, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_TX_SUCCEEDED", "alias": "transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.36467, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN", "alias": "transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_728394c87bda0878c61248bc68f73738"}, "created_at": 1676048038.365317, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_TRANSFER_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_TRANSFER_TYPE.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_TRANSFER_TYPE", "alias": "transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_TRANSFER_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.36737, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere TRANSFER_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_TRANSFER_TYPE", "column_name": "TRANSFER_TYPE", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR", "alias": "transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6e2d5f4a8dc26394fe2245310a8f94b6"}, "created_at": 1676048038.368021, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'TRANSFER_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_TRANSFER_TYPE", "column_name": "TRANSFER_TYPE", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_SENDER"], "unique_id": "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_SENDER.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_SENDER", "alias": "transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_SENDER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.370143, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere SENDER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_SENDER", "column_name": "SENDER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "SENDER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR", "alias": "transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e10a71d546a72baeafc567861c2786ec"}, "created_at": 1676048038.370801, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'SENDER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_SENDER", "column_name": "SENDER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_AMOUNT"], "unique_id": "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_AMOUNT.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_AMOUNT", "alias": "transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_AMOUNT.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.372939, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere AMOUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT", "alias": "transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3d2e580b5050635224f5adef1606662f"}, "created_at": 1676048038.3735838, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'AMOUNT'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_CURRENCY"], "unique_id": "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_CURRENCY.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_CURRENCY", "alias": "transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_CURRENCY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.375686, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere CURRENCY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR", "alias": "transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b6a3425524fb0c40bcd8df9df7d4b19b"}, "created_at": 1676048038.3763351, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'CURRENCY'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers_RECEIVER"], "unique_id": "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers_RECEIVER.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers_RECEIVER", "alias": "transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers_RECEIVER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.378474, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere RECEIVER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers_RECEIVER", "column_name": "RECEIVER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR", "alias": "transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d10227dfb81ed91851b8671c5fbe4d86"}, "created_at": 1676048038.379199, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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 = 'RECEIVER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers_RECEIVER", "column_name": "RECEIVER", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__transfers__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__transfers__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "not_null_silver__transfers__INSERTED_TIMESTAMP", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/not_null_silver__transfers__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.381388, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.transfers\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.transfers", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": {"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__transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "transfers", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b6f46f50322a5b8ddf0254b259834e20"}, "created_at": 1676048038.3820548, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('TRANSFER_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SENDER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURRENCY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RECEIVER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' 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('UNIQUE_KEY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.transfers", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__transfers"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__transfers')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__transfers"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58.sql", "original_file_path": "models/silver/silver__transfers.yml", "name": "dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY", "alias": "transfers_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__transfers.yml/dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_640bd20190597c8022d03c0003e7bf58"}, "created_at": 1676048038.384081, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.transfers\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.transfers_UNIQUE_KEY", "column_name": null, "file_key_name": "models.silver__transfers"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_BLOCK_ID.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_BLOCK_ID", "alias": "governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3877828, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT", "alias": "governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9e659ce7d6e3e65292fc2b5403b4badc"}, "created_at": 1676048038.388447, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP", "alias": "governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3907058, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_363502caffcb65ff379ee4ac3ef1ec3d"}, "created_at": 1676048038.391366, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_TX_ID.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_TX_ID", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.393978, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f4489c754bb0313d50837f474a4ca62f"}, "created_at": 1676048038.394646, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_TX_SUCCEEDED", "alias": "governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.396756, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN", "alias": "governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f7d85b7e230a101559254f5579bc89c3"}, "created_at": 1676048038.397407, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSER"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSER.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSER", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_PROPOSER.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.3993468, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_PROPOSER", "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3e3f98a0c81c1011f4a61af82fca8ad1"}, "created_at": 1676048038.400108, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSER'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_PROPOSER", "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "cosmos1[0-9a-z]{38,38}", "column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_", "alias": "governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b35500a2b2a41eac08f9b77638429217"}, "created_at": 1676048038.402715, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(PROPOSER, 'cosmos1[0-9a-z]{38,38}', 1, 1)\n\n\n > 0\n as expression\n\n\n from COSMOS_DEV.silver.governance_submit_proposal\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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_match_regex_silver.governance_submit_proposal_PROPOSER", "column_name": "PROPOSER", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSAL_ID"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSAL_ID.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSAL_ID", "alias": "governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_PROPOSAL_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.40497, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT", "alias": "governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9875db0871fa504db07d6ef79b1bed96"}, "created_at": 1676048038.4056551, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSAL_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal_PROPOSAL_TYPE", "alias": "governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.407833, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere PROPOSAL_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal_PROPOSAL_TYPE", "column_name": "PROPOSAL_TYPE", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR", "alias": "governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_874f9b1d27d3716aae1189f52578de35"}, "created_at": 1676048038.4084852, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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 = 'PROPOSAL_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal_PROPOSAL_TYPE", "column_name": "PROPOSAL_TYPE", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP", "alias": "governance_submit_proposal", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.410632, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.governance_submit_proposal\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.governance_submit_proposal", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": {"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__governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "governance_submit_proposal", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_799d5954aec804f8301a1a63e52a2c3a"}, "created_at": 1676048038.411274, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSER' 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('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TYPE' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.governance_submit_proposal", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["TX_ID"], "model": "{{ get_where_subquery(ref('silver__governance_submit_proposal')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de.sql", "original_file_path": "models/silver/silver__governance_submit_proposal.yml", "name": "dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID", "alias": "governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__governance_submit_proposal.yml/dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_a5925586cdec9264bffabb12eb6ae7de"}, "created_at": 1676048038.413407, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n TX_ID\n from COSMOS_DEV.silver.governance_submit_proposal\n group by TX_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.governance_submit_proposal_TX_ID", "column_name": null, "file_key_name": "models.silver__governance_submit_proposal"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_BLOCK_ID"], "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_BLOCK_ID.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_BLOCK_ID", "alias": "msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_BLOCK_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.417421, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere BLOCK_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT", "alias": "msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a82a71b2a18c20c89390e505bb3d6678"}, "created_at": 1676048038.418199, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_ID'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_BLOCK_TIMESTAMP.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_BLOCK_TIMESTAMP", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_BLOCK_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.4201899, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere BLOCK_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1"], "unique_id": "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_8b7606cda4ae1f5db49476738b169ca8"}, "created_at": 1676048038.420962, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_TIMESTAMP as TIMESTAMP)) as max_timestamp\n from\n COSMOS_DEV.silver.msgs\n where\n -- to exclude erroneous future dates\n cast(BLOCK_TIMESTAMP as TIMESTAMP) <= 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))\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)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_row_values_to_have_recent_data_silver.msgs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4ad220d8015481264c5bc5b08ea38bc0"}, "created_at": 1676048038.423716, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'BLOCK_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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_TX_ID"], "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_TX_ID.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_TX_ID", "alias": "msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.426065, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere TX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "TX_ID", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR", "alias": "msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8f7996fc1cc711e758259f737abefcc8"}, "created_at": 1676048038.426713, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_ID'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_TX_ID", "column_name": "TX_ID", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_TX_SUCCEEDED.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_TX_SUCCEEDED", "alias": "msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_TX_SUCCEEDED.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.42884, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere TX_SUCCEEDED is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["BOOLEAN"], "column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN", "alias": "msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5c3bb1b405488f550c7e12972506b3ed"}, "created_at": 1676048038.4295092, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'TX_SUCCEEDED'\n and\n relation_column_type not in ('BOOLEAN')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT", "alias": "msgs_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b2f293f0275837aca01df4e92584b123"}, "created_at": 1676048038.4314601, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_MSG_GROUP", "column_name": "MSG_GROUP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_SUB_GROUP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT", "alias": "msgs_MSG_SUB_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1edca6305d00494db412f28c898f1ab1"}, "created_at": 1676048038.433533, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_SUB_GROUP'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_MSG_SUB_GROUP", "column_name": "MSG_SUB_GROUP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_MSG_INDEX"], "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_MSG_INDEX.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_MSG_INDEX", "alias": "msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_MSG_INDEX.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.435621, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere MSG_INDEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["NUMBER", "FLOAT"], "column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49b195a36b135b701165de9077016793\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT", "alias": "msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_49b195a36b135b701165de9077016793.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_49b195a36b135b701165de9077016793"}, "created_at": 1676048038.4362738, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_INDEX'\n and\n relation_column_type not in ('NUMBER', 'FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs_MSG_TYPE"], "unique_id": "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs_MSG_TYPE.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs_MSG_TYPE", "alias": "msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs_MSG_TYPE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.4383821, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere MSG_TYPE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["STRING", "VARCHAR"], "column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR", "alias": "msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f8c184b9779221d5209777f8eafddbcd"}, "created_at": 1676048038.439033, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG_TYPE'\n and\n relation_column_type not in ('STRING', 'VARCHAR')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["OBJECT", "VARIENT"], "column_name": "MSG", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT", "alias": "msgs_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c4d3f927ebd342224f431029a12124fc"}, "created_at": 1676048038.4411101, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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 = 'MSG'\n and\n relation_column_type not in ('OBJECT', 'VARIENT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs_MSG", "column_name": "MSG", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_silver", "fqn": ["cosmos_models", "silver", "not_null_silver__msgs__INSERTED_TIMESTAMP"], "unique_id": "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_silver__msgs__INSERTED_TIMESTAMP.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "not_null_silver__msgs__INSERTED_TIMESTAMP", "alias": "msgs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/not_null_silver__msgs__INSERTED_TIMESTAMP.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.443073, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.silver.msgs\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_silver.msgs", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": {"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__msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "fqn": ["cosmos_models", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "alias": "msgs", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3f3f1b31210b0f8f286a63ae7ee2f240"}, "created_at": 1676048038.4438589, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BLOCK_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('BLOCK_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TX_SUCCEEDED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_SUB_GROUP' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_INDEX' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MSG' as TEXT) as relation_column,\n cast('OBJECT' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNIQUE_KEY' 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": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_values_to_be_in_type_list_silver.msgs", "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('silver__msgs')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.silver__msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_silver", "fqn": ["cosmos_models", "silver", "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.sql", "original_file_path": "models/silver/silver__msgs.yml", "name": "dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY", "alias": "msgs_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["silver__msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/silver/silver__msgs.yml/dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.445676, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.silver.msgs\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_silver.msgs_UNIQUE_KEY", "column_name": null, "file_key_name": "models.silver__msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID", "alias": "fact_blocks_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9a99d9b020811e4a63fd7fba065f6295"}, "created_at": 1676048038.448883, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP", "alias": "fact_blocks_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7887ba59ce032c24fce53e733e68c2e6"}, "created_at": 1676048038.452663, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN", "alias": "fact_blocks_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_76e64acccfbed054f3621f74fb99a0f9"}, "created_at": 1676048038.4544551, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID", "alias": "fact_blocks_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_baca9f9ce2584263de832e3494b15bf6"}, "created_at": 1676048038.4562051, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CHAIN_ID' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_CHAIN_ID", "column_name": "CHAIN_ID", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT", "alias": "fact_blocks_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a423985c9e70b52fbdcf89d2de49b09a"}, "created_at": 1676048038.4578571, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_COUNT' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_TX_COUNT", "column_name": "TX_COUNT", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSER_ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS", "alias": "fact_blocks_PROPOSER_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_cf9186faf8ccda84be732731dbc66e80"}, "created_at": 1676048038.459924, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSER_ADDRESS' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_PROPOSER_ADDRESS", "column_name": "PROPOSER_ADDRESS", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VALIDATOR_HASH", "model": "{{ get_where_subquery(ref('core__fact_blocks')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_blocks"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f.sql", "original_file_path": "models/gold/core__fact_blocks.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH", "alias": "fact_blocks_VALIDATOR_HASH", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_blocks"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_blocks.yml/dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_aaeff2d92f1a13577c55ffa1cd859a6f"}, "created_at": 1676048038.4617112, "compiled_code": "\n\n with test_data as (\n\n select\n cast('VALIDATOR_HASH' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_blocks_VALIDATOR_HASH", "column_name": "VALIDATOR_HASH", "file_key_name": "models.core__fact_blocks"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID", "alias": "fact_transactions_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_dedbf765f8b11285f96bca6fdcd6918e"}, "created_at": 1676048038.465874, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP", "alias": "fact_transactions_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_96434b526554dcd7bb5e3f00dab0f8a8"}, "created_at": 1676048038.467638, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID", "alias": "fact_transactions_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a20e4181a30c39ecc0d63e0a8983d6ce"}, "created_at": 1676048038.469407, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_FROM", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": "TX_SUCCEEDED = 'TRUE'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_TX_FROM"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"TX_SUCCEEDED = 'TRUE'\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_core__fact_transactions_TX_FROM.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "not_null_core__fact_transactions_TX_FROM", "alias": "fact_transactions_TX_FROM", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/not_null_core__fact_transactions_TX_FROM.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "TX_SUCCEEDED = 'TRUE'"}, "created_at": 1676048038.471194, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from COSMOS_DEV.core.fact_transactions where TX_SUCCEEDED = 'TRUE') dbt_subquery\nwhere TX_FROM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_core.fact_transactions_TX_FROM", "column_name": "TX_FROM", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED", "alias": "fact_transactions_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_58f691f30508d0d149fa7493951d524e"}, "created_at": 1676048038.471842, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CODESPACE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE", "alias": "fact_transactions_CODESPACE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_714bdc355cdbee3622da17bdad57e8d1"}, "created_at": 1676048038.473613, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CODESPACE' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_CODESPACE", "column_name": "CODESPACE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FEE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_FEE"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_core__fact_transactions_FEE.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "not_null_core__fact_transactions_FEE", "alias": "fact_transactions_FEE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/not_null_core__fact_transactions_FEE.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.475355, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.core.fact_transactions\nwhere FEE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_core.fact_transactions_FEE", "column_name": "FEE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FEE_DENOM", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "not_null_core", "fqn": ["cosmos_models", "gold", "not_null_core__fact_transactions_FEE_DENOM"], "unique_id": "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "not_null_core__fact_transactions_FEE_DENOM.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "not_null_core__fact_transactions_FEE_DENOM", "alias": "fact_transactions_FEE_DENOM", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/not_null_core__fact_transactions_FEE_DENOM.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.475978, "compiled_code": "\n \n \n\n\n\nselect *\nfrom COSMOS_DEV.core.fact_transactions\nwhere FEE_DENOM is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.not_null_core.fact_transactions_FEE_DENOM", "column_name": "FEE_DENOM", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "GAS_USED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED", "alias": "fact_transactions_GAS_USED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5b2f26b0848152079eee87e23c562e2a"}, "created_at": 1676048038.4765928, "compiled_code": "\n\n with test_data as (\n\n select\n cast('GAS_USED' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_GAS_USED", "column_name": "GAS_USED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "GAS_WANTED", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED", "alias": "fact_transactions_GAS_WANTED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4844b97d4256b9730313887f9c6dec3a"}, "created_at": 1676048038.478396, "compiled_code": "\n\n with test_data as (\n\n select\n cast('GAS_WANTED' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_GAS_WANTED", "column_name": "GAS_WANTED", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_CODE", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE", "alias": "fact_transactions_TX_CODE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e5bba550d3112ad33ed0d922b02eab15"}, "created_at": 1676048038.4801521, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_CODE' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_TX_CODE", "column_name": "TX_CODE", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_LOG", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG", "alias": "fact_transactions_TX_LOG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f0d0909c410ae4f8b1959d3f8ecc3d4b"}, "created_at": 1676048038.481785, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_LOG' as TEXT) as column_name,\n 11 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_TX_LOG", "column_name": "TX_LOG", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSGS", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS", "alias": "fact_transactions_MSGS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_178ef9c7e42dd688dc32c2ee6a3794ed"}, "created_at": 1676048038.483565, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSGS' as TEXT) as column_name,\n 12 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_MSGS", "column_name": "MSGS", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY", "alias": "fact_transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_852e526e31ed96ecbc5195d6c77415e4"}, "created_at": 1676048038.485312, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 14 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transactions_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["UNIQUE_KEY"], "model": "{{ get_where_subquery(ref('core__fact_transactions')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transactions"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_utils_unique_combination_of_columns_core", "fqn": ["cosmos_models", "gold", "dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210.sql", "original_file_path": "models/gold/core__fact_transactions.yml", "name": "dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY", "alias": "fact_transactions_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transactions.yml/dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_f3a6d5b69cfb7bd3cd15131f5adfb210"}, "created_at": 1676048038.486954, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n UNIQUE_KEY\n from COSMOS_DEV.core.fact_transactions\n group by UNIQUE_KEY\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_utils_unique_combination_of_columns_core.fact_transactions_UNIQUE_KEY", "column_name": null, "file_key_name": "models.core__fact_transactions"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS", "alias": "dim_tokens_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a26b7d51b3275912e7c5eb9a35f500bc"}, "created_at": 1676048038.4911418, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN", "alias": "dim_tokens_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_122fe64c6f773ceab4bea0e28f09259d"}, "created_at": 1676048038.492821, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR", "alias": "dim_tokens_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e2d54579b82b95968d0be4258fa7bc0a"}, "created_at": 1676048038.494554, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_CREATOR", "column_name": "CREATOR", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE", "alias": "dim_tokens_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_54fc2d4c2ad0866d668732484a74e755"}, "created_at": 1676048038.496385, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE", "alias": "dim_tokens_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_897f3186ec3a24c14d5e7766b4c7c668"}, "created_at": 1676048038.498069, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL", "alias": "dim_tokens_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.499821, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_LABEL", "column_name": "LABEL", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME", "alias": "dim_tokens_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4d803781ac401d3e7efd0079e203b071"}, "created_at": 1676048038.501469, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ALIAS", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS", "alias": "dim_tokens_ALIAS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.503113, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ALIAS' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_ALIAS", "column_name": "ALIAS", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DECIMAL", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL", "alias": "dim_tokens_DECIMAL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f1ad0ae924451777c950dde52fca3207"}, "created_at": 1676048038.5047371, "compiled_code": "\n\n with test_data as (\n\n select\n cast('DECIMAL' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_DECIMAL", "column_name": "DECIMAL", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA", "alias": "dim_tokens_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_eccb289eb1669e444fc8234ddbd4c2e5"}, "created_at": 1676048038.506499, "compiled_code": "\n\n with test_data as (\n\n select\n cast('RAW_METADATA' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_RAW_METADATA", "column_name": "RAW_METADATA", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__dim_tokens')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_tokens"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8.sql", "original_file_path": "models/gold/core__dim_tokens.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY", "alias": "dim_tokens_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_tokens"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_tokens.yml/dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c8011e5ce147741afe21a2dc46d16ab8"}, "created_at": 1676048038.508148, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_tokens_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__dim_tokens"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID", "alias": "fact_msgs_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a570a4ead3291c1ad8d5468a3c834c19"}, "created_at": 1676048038.511533, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP", "alias": "fact_msgs_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_27b86ac45811bf95779ad1996e472190"}, "created_at": 1676048038.513309, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID", "alias": "fact_msgs_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.5150452, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED", "alias": "fact_msgs_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a130c5ecf3d41454547ec53910aaa25e"}, "created_at": 1676048038.516595, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP", "alias": "fact_msgs_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5ff94a97fceee10389168039b58af910"}, "created_at": 1676048038.518368, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_GROUP' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_MSG_GROUP", "column_name": "MSG_GROUP", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX", "alias": "fact_msgs_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_78ae1f1ff97203b6084d21131c2ff37c"}, "created_at": 1676048038.520104, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_INDEX' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE", "alias": "fact_msgs_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0f6fb49d1389295c5657710f8afb86a6"}, "created_at": 1676048038.521734, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG", "alias": "fact_msgs_MSG", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.523756, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_MSG", "column_name": "MSG", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msgs')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msgs"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d.sql", "original_file_path": "models/gold/core__fact_msgs.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY", "alias": "fact_msgs_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msgs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msgs.yml/dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_704b12db921eaf00a2d129285fddd15d"}, "created_at": 1676048038.525362, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msgs_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_msgs"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID", "alias": "fact_governance_votes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_96592c6f77b34304ca4b40ae36ac00d0"}, "created_at": 1676048038.528451, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP", "alias": "fact_governance_votes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_798520c5d4e33b06fe4c36fb16f5499a"}, "created_at": 1676048038.530209, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d6049229371780818cf99f9daebee135\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID", "alias": "fact_governance_votes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_d6049229371780818cf99f9daebee135.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d6049229371780818cf99f9daebee135"}, "created_at": 1676048038.5318642, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED", "alias": "fact_governance_votes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9090b26e4451fb2d3f85d72f490be9e4"}, "created_at": 1676048038.533615, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER", "alias": "fact_governance_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e0084243cad9936acb8807546e7b7546"}, "created_at": 1676048038.5353541, "compiled_code": "\n\n with test_data as (\n\n select\n cast('VOTER' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_VOTER", "column_name": "VOTER", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID", "alias": "fact_governance_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_513c9459b234d9a801bbae26903a5dc5"}, "created_at": 1676048038.537001, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('core__fact_governance_votes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_votes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e.sql", "original_file_path": "models/gold/core__fact_governance_votes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION", "alias": "fact_governance_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_votes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_votes.yml/dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_be2ce92e210a51b4d0ea1ee905492c2e"}, "created_at": 1676048038.5387368, "compiled_code": "\n\n with test_data as (\n\n select\n cast('VOTE_OPTION' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_votes_VOTE_OPTION", "column_name": "VOTE_OPTION", "file_key_name": "models.core__fact_governance_votes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS", "alias": "fact_validators_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8a1be4f75e90de8dd39493a8d5534e7f"}, "created_at": 1676048038.5432, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN", "alias": "fact_validators_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c2c315959a55f46a6b717f8e879a2a44"}, "created_at": 1676048038.544854, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR", "alias": "fact_validators_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_cdf0f53054ecd10198fb431ab9dbe5c5"}, "created_at": 1676048038.546596, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_CREATOR", "column_name": "CREATOR", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE", "alias": "fact_validators_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e060135375baea6d6cdd8adf15d3bbcb"}, "created_at": 1676048038.548332, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE", "alias": "fact_validators_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c6978560b9852b1cf28da68123aaad06"}, "created_at": 1676048038.549966, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL", "alias": "fact_validators_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_fea362018a0ecfc9abacbba867fa5c41"}, "created_at": 1676048038.551718, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_LABEL", "column_name": "LABEL", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME", "alias": "fact_validators_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a29a9479c1fc88a4e8e8b876324d1204"}, "created_at": 1676048038.5537531, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ACCOUNT_ADDRESS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS", "alias": "fact_validators_ACCOUNT_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4d720a2a54c770d357bf6f6dd06cc8dd"}, "created_at": 1676048038.555382, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ACCOUNT_ADDRESS' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_ACCOUNT_ADDRESS", "column_name": "ACCOUNT_ADDRESS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DELEGATOR_SHARES", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES", "alias": "fact_validators_DELEGATOR_SHARES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b19ee3167f9fa427c8b28fa377fe689d"}, "created_at": 1676048038.557141, "compiled_code": "\n\n with test_data as (\n\n select\n cast('DELEGATOR_SHARES' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_DELEGATOR_SHARES", "column_name": "DELEGATOR_SHARES", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "SELF_DELEGATION", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION", "alias": "fact_validators_SELF_DELEGATION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b8224e84e9d5f5ec3684c2e444a5e171"}, "created_at": 1676048038.558868, "compiled_code": "\n\n with test_data as (\n\n select\n cast('SELF_DELEGATION' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_SELF_DELEGATION", "column_name": "SELF_DELEGATION", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "NUM_DELEGATORS", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS", "alias": "fact_validators_NUM_DELEGATORS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e9ccbb8801ac96b06d0e64b2644f587e"}, "created_at": 1676048038.5605068, "compiled_code": "\n\n with test_data as (\n\n select\n cast('NUM_DELEGATORS' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_NUM_DELEGATORS", "column_name": "NUM_DELEGATORS", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RATE", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RATE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RATE", "alias": "fact_validators_RATE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c610d9d0e5401e84669b8f74f0054f8d"}, "created_at": 1676048038.5622709, "compiled_code": "\n\n with test_data as (\n\n select\n cast('RATE' as TEXT) as column_name,\n 11 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_RATE", "column_name": "RATE", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RANK", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RANK"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RANK", "alias": "fact_validators_RANK", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3d9baa6c305a2431d533a636a514c862"}, "created_at": 1676048038.563999, "compiled_code": "\n\n with test_data as (\n\n select\n cast('RANK' as TEXT) as column_name,\n 12 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_RANK", "column_name": "RANK", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "NUM_GOVERNANCE_VOTES", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES", "alias": "fact_validators_NUM_GOVERNANCE_VOTES", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_563a613e2fb58c931af944c30727d2f4"}, "created_at": 1676048038.5656168, "compiled_code": "\n\n with test_data as (\n\n select\n cast('NUM_GOVERNANCE_VOTES' as TEXT) as column_name,\n 13 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_NUM_GOVERNANCE_VOTES", "column_name": "NUM_GOVERNANCE_VOTES", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RAW_METADATA", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA", "alias": "fact_validators_RAW_METADATA", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4eddca1569da641be625ba84989a7468"}, "created_at": 1676048038.567413, "compiled_code": "\n\n with test_data as (\n\n select\n cast('RAW_METADATA' as TEXT) as column_name,\n 14 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_RAW_METADATA", "column_name": "RAW_METADATA", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_validators')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_validators"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334.sql", "original_file_path": "models/gold/core__fact_validators.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY", "alias": "fact_validators_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_validators"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_validators.yml/dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_df9b56c4997907c016900ed52c3fc334"}, "created_at": 1676048038.569291, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 15 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_validators_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_validators"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS", "alias": "dim_labels_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_41b4895c111847570b9b58f5a6c076d2"}, "created_at": 1676048038.572572, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ADDRESS' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_ADDRESS", "column_name": "ADDRESS", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN", "alias": "dim_labels_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6006a62e2d0011ab1a65fd34173ce90e"}, "created_at": 1676048038.5742311, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCKCHAIN' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_BLOCKCHAIN", "column_name": "BLOCKCHAIN", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CREATOR", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR", "alias": "dim_labels_CREATOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_64787f541f11f511f0997901e614dcfa"}, "created_at": 1676048038.575994, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CREATOR' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_CREATOR", "column_name": "CREATOR", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_TYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE", "alias": "dim_labels_LABEL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_6035e0461bec6061c33dfe6bc2448d37"}, "created_at": 1676048038.577736, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_TYPE' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_LABEL_TYPE", "column_name": "LABEL_TYPE", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL_SUBTYPE", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE", "alias": "dim_labels_LABEL_SUBTYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7709dcdef6d145ab7a39f93c6ad90f97"}, "created_at": 1676048038.5795121, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL_SUBTYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_LABEL_SUBTYPE", "column_name": "LABEL_SUBTYPE", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "LABEL", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL", "alias": "dim_labels_LABEL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1676048038.581331, "compiled_code": "\n\n with test_data as (\n\n select\n cast('LABEL' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_LABEL", "column_name": "LABEL", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('core__dim_labels')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_labels"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28.sql", "original_file_path": "models/gold/core__dim_labels.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME", "alias": "dim_labels_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_labels"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_labels.yml/dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e4600be0d5ad83facb0e4da270136f28"}, "created_at": 1676048038.58319, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROJECT_NAME' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_labels_PROJECT_NAME", "column_name": "PROJECT_NAME", "file_key_name": "models.core__dim_labels"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID", "alias": "fact_governance_submit_proposal_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b0430562203b8b5a44dac79637563c5e"}, "created_at": 1676048038.586692, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP", "alias": "fact_governance_submit_proposal_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4daa537ea7fc24167b12f9b9dbdd8221"}, "created_at": 1676048038.588458, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID", "alias": "fact_governance_submit_proposal_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1f4c65e60a7cca6f7560d2bb804e858f"}, "created_at": 1676048038.590107, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED", "alias": "fact_governance_submit_proposal_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ccd55a25b7454ffe0c0f4ddab777b27b"}, "created_at": 1676048038.591899, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSER", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER", "alias": "fact_governance_submit_proposal_PROPOSER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d74694acc03cbfb8208d5c62883ae6af"}, "created_at": 1676048038.593736, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSER' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_PROPOSER", "column_name": "PROPOSER", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID", "alias": "fact_governance_submit_proposal_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e7daf3e6d977f78f354e30040f0f6ea1"}, "created_at": 1676048038.595506, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_TYPE", "model": "{{ get_where_subquery(ref('core__fact_governance_submit_proposal')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_submit_proposal"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce.sql", "original_file_path": "models/gold/core__fact_governance_submit_proposal.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE", "alias": "fact_governance_submit_proposal_PROPOSAL_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_submit_proposal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_submit_proposal.yml/dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d73c1024926640a6c900a99a4078a8ce"}, "created_at": 1676048038.597308, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_submit_proposal_PROPOSAL_TYPE", "column_name": "PROPOSAL_TYPE", "file_key_name": "models.core__fact_governance_submit_proposal"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID", "alias": "fact_governance_proposal_deposits_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_23bfc0c63c7255bab327c7ed74fb1054"}, "created_at": 1676048038.600756, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP", "alias": "fact_governance_proposal_deposits_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_20198ce659a6de6395bca680f9b9eceb"}, "created_at": 1676048038.602866, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID", "alias": "fact_governance_proposal_deposits_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3ec6c558f1dec6cf76cdd99db8e1813c"}, "created_at": 1676048038.605045, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED", "alias": "fact_governance_proposal_deposits_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1cede2204ede72efacf6c7841671b485"}, "created_at": 1676048038.606934, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DEPOSITOR", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR", "alias": "fact_governance_proposal_deposits_DEPOSITOR", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ee57b6a0156f1841d77cdcbec8611f5f"}, "created_at": 1676048038.608796, "compiled_code": "\n\n with test_data as (\n\n select\n cast('DEPOSITOR' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_DEPOSITOR", "column_name": "DEPOSITOR", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID", "alias": "fact_governance_proposal_deposits_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0f5bfec6315f7f8caac3e2e38d6aae80"}, "created_at": 1676048038.610637, "compiled_code": "\n\n with test_data as (\n\n select\n cast('PROPOSAL_ID' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_PROPOSAL_ID", "column_name": "PROPOSAL_ID", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT", "alias": "fact_governance_proposal_deposits_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9de7cd2c2a5fd698fa5eb8bba14f6245"}, "created_at": 1676048038.612318, "compiled_code": "\n\n with test_data as (\n\n select\n cast('AMOUNT' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY", "alias": "fact_governance_proposal_deposits_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_42a23b4f19c7fc38cf2d66e61359ac9e"}, "created_at": 1676048038.614181, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CURRENCY' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DECIMAL", "model": "{{ get_where_subquery(ref('core__fact_governance_proposal_deposits')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_governance_proposal_deposits"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e.sql", "original_file_path": "models/gold/core__fact_governance_proposal_deposits.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL", "alias": "fact_governance_proposal_deposits_DECIMAL", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_governance_proposal_deposits"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_governance_proposal_deposits.yml/dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_86686a52330b8355795ac84611c94d1e"}, "created_at": 1676048038.615992, "compiled_code": "\n\n with test_data as (\n\n select\n cast('DECIMAL' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_governance_proposal_deposits_DECIMAL", "column_name": "DECIMAL", "file_key_name": "models.core__fact_governance_proposal_deposits"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID", "alias": "fact_msg_attributes_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_94441ddb88077bf48c5af2329ae23037"}, "created_at": 1676048038.620214, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP", "alias": "fact_msg_attributes_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4aa07486a0666336c0d3e1952f8247d4"}, "created_at": 1676048038.6220129, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID", "alias": "fact_msg_attributes_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_22ca003994e1c60c4c224c9408ca1a04"}, "created_at": 1676048038.623785, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED", "alias": "fact_msg_attributes_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5c30ff3d9e78e189c358c6e599782b21"}, "created_at": 1676048038.625449, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_GROUP", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP", "alias": "fact_msg_attributes_MSG_GROUP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_060a37d586c43ca861c7fb64d7764920"}, "created_at": 1676048038.627208, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_GROUP' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_MSG_GROUP", "column_name": "MSG_GROUP", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX", "alias": "fact_msg_attributes_MSG_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8240c937ee6166a16aa573466aac2e97"}, "created_at": 1676048038.628978, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_INDEX' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_MSG_INDEX", "column_name": "MSG_INDEX", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "MSG_TYPE", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE", "alias": "fact_msg_attributes_MSG_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_49bcdc35189875980e0989916a6f0011"}, "created_at": 1676048038.630699, "compiled_code": "\n\n with test_data as (\n\n select\n cast('MSG_TYPE' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_MSG_TYPE", "column_name": "MSG_TYPE", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_INDEX", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX", "alias": "fact_msg_attributes_ATTRIBUTE_INDEX", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_ff1ad5ae0ae39f719670800e20da91fe"}, "created_at": 1676048038.6324852, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_INDEX' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_ATTRIBUTE_INDEX", "column_name": "ATTRIBUTE_INDEX", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY", "alias": "fact_msg_attributes_ATTRIBUTE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8d392900ed4aaaeb5f58f5952068a972"}, "created_at": 1676048038.634589, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_KEY' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_ATTRIBUTE_KEY", "column_name": "ATTRIBUTE_KEY", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "ATTRIBUTE_VALUE", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE", "alias": "fact_msg_attributes_ATTRIBUTE_VALUE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_838ecceda25c1da517356638286f87f1"}, "created_at": 1676048038.63636, "compiled_code": "\n\n with test_data as (\n\n select\n cast('ATTRIBUTE_VALUE' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_ATTRIBUTE_VALUE", "column_name": "ATTRIBUTE_VALUE", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_msg_attributes')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_msg_attributes"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77.sql", "original_file_path": "models/gold/core__fact_msg_attributes.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY", "alias": "fact_msg_attributes_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_msg_attributes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_msg_attributes.yml/dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f16d7f146b01ab100c92f6ff4ac45e77"}, "created_at": 1676048038.638161, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 10 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_msg_attributes_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_msg_attributes"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('core__dim_vote_options')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_vote_options"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598.sql", "original_file_path": "models/gold/core__dim_vote_options.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION", "alias": "dim_vote_options_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_vote_options"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_vote_options.yml/dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b12e9d358152da0b4b45cfaea9624598"}, "created_at": 1676048038.640948, "compiled_code": "\n\n with test_data as (\n\n select\n cast('VOTE_OPTION' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_vote_options_VOTE_OPTION", "column_name": "VOTE_OPTION", "file_key_name": "models.core__dim_vote_options"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "DESCRIPTION", "model": "{{ get_where_subquery(ref('core__dim_vote_options')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__dim_vote_options"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e.sql", "original_file_path": "models/gold/core__dim_vote_options.yml", "name": "dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION", "alias": "dim_vote_options_DESCRIPTION", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__dim_vote_options"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__dim_vote_options.yml/dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_dac8d4e6429bf299d9ebd42594c4248e"}, "created_at": 1676048038.642829, "compiled_code": "\n\n with test_data as (\n\n select\n cast('DESCRIPTION' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.dim_vote_options_DESCRIPTION", "column_name": "DESCRIPTION", "file_key_name": "models.core__dim_vote_options"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_ID", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_06ec7a899413bab6063716744517f718\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID", "alias": "fact_transfers_BLOCK_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_06ec7a899413bab6063716744517f718.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_06ec7a899413bab6063716744517f718"}, "created_at": 1676048038.646625, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_ID' as TEXT) as column_name,\n 0 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_BLOCK_ID", "column_name": "BLOCK_ID", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "BLOCK_TIMESTAMP", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP", "alias": "fact_transfers_BLOCK_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_826892449a5c717b6c5e94d938e1cd56"}, "created_at": 1676048038.64837, "compiled_code": "\n\n with test_data as (\n\n select\n cast('BLOCK_TIMESTAMP' as TEXT) as column_name,\n 1 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_BLOCK_TIMESTAMP", "column_name": "BLOCK_TIMESTAMP", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_ID", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID", "alias": "fact_transfers_TX_ID", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_96762ac61adfc72f3d7206bd3c98c8d0"}, "created_at": 1676048038.6501892, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_ID' as TEXT) as column_name,\n 2 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_TX_ID", "column_name": "TX_ID", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TX_SUCCEEDED", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED", "alias": "fact_transfers_TX_SUCCEEDED", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3e10ac1977df40479b23748ad8b35711"}, "created_at": 1676048038.652265, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TX_SUCCEEDED' as TEXT) as column_name,\n 3 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_TX_SUCCEEDED", "column_name": "TX_SUCCEEDED", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "TRANSFER_TYPE", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE", "alias": "fact_transfers_TRANSFER_TYPE", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_afb865f102809da022c73cfc881b9e6f"}, "created_at": 1676048038.654079, "compiled_code": "\n\n with test_data as (\n\n select\n cast('TRANSFER_TYPE' as TEXT) as column_name,\n 4 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_TRANSFER_TYPE", "column_name": "TRANSFER_TYPE", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "SENDER", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER", "alias": "fact_transfers_SENDER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d75b3be78438a2c7db13edd81e5d985c"}, "created_at": 1676048038.6557262, "compiled_code": "\n\n with test_data as (\n\n select\n cast('SENDER' as TEXT) as column_name,\n 5 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_SENDER", "column_name": "SENDER", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "AMOUNT", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT", "alias": "fact_transfers_AMOUNT", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e61b6e3a305fab3136e7689da1148cc5"}, "created_at": 1676048038.6576178, "compiled_code": "\n\n with test_data as (\n\n select\n cast('AMOUNT' as TEXT) as column_name,\n 6 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_AMOUNT", "column_name": "AMOUNT", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "CURRENCY", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY", "alias": "fact_transfers_CURRENCY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_9e829724710829a4cf77c86596b0b398"}, "created_at": 1676048038.659494, "compiled_code": "\n\n with test_data as (\n\n select\n cast('CURRENCY' as TEXT) as column_name,\n 7 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_CURRENCY", "column_name": "CURRENCY", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "RECEIVER", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER", "alias": "fact_transfers_RECEIVER", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7ad7c20bd546c1cda67a234d31728cef"}, "created_at": 1676048038.661151, "compiled_code": "\n\n with test_data as (\n\n select\n cast('RECEIVER' as TEXT) as column_name,\n 8 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_RECEIVER", "column_name": "RECEIVER", "file_key_name": "models.core__fact_transfers"}, "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": {"test_metadata": {"name": "expect_column_to_exist", "kwargs": {"column_name": "UNIQUE_KEY", "model": "{{ get_where_subquery(ref('core__fact_transfers')) }}"}, "namespace": "dbt_expectations"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_to_exist", "macro.dbt.get_where_subquery"], "nodes": ["model.cosmos_models.core__fact_transfers"]}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": true, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "COSMOS_DEV", "schema": "dbt_expectations_expect_column_to_exist_core", "fqn": ["cosmos_models", "gold", "dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY"], "unique_id": "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91", "raw_code": "{{ dbt_expectations.test_expect_column_to_exist(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f\") }}", "language": "sql", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f.sql", "original_file_path": "models/gold/core__fact_transfers.yml", "name": "dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY", "alias": "fact_transfers_UNIQUE_KEY", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["core__fact_transfers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/cosmos_models/models/gold/core__fact_transfers.yml/dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f.sql", "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_08de937a42d77cdb9a7476eefb97be2f"}, "created_at": 1676048038.662966, "compiled_code": "\n\n with test_data as (\n\n select\n cast('UNIQUE_KEY' as TEXT) as column_name,\n 9 as matching_column_index,\n True as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "COSMOS_DEV.dbt_expectations_expect_column_to_exist_core.fact_transfers_UNIQUE_KEY", "column_name": "UNIQUE_KEY", "file_key_name": "models.core__fact_transfers"}}, "sources": {"source.cosmos_models.bronze_streamline.blocks": {"fqn": ["cosmos_models", "bronze_streamline", "blocks"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.blocks", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "blocks", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "blocks", "resource_type": "source", "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.COSMOS.blocks", "created_at": 1676048038.664661}, "source.cosmos_models.bronze_streamline.tx_search": {"fqn": ["cosmos_models", "bronze_streamline", "tx_search"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.tx_search", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "tx_search", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "tx_search", "resource_type": "source", "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.COSMOS.tx_search", "created_at": 1676048038.664727}, "source.cosmos_models.bronze_streamline.validators": {"fqn": ["cosmos_models", "bronze_streamline", "validators"], "database": "streamline", "schema": "COSMOS", "unique_id": "source.cosmos_models.bronze_streamline.validators", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "validators", "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "validators", "resource_type": "source", "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.COSMOS.validators", "created_at": 1676048038.664774}, "source.cosmos_models.osmo.asset_metadata": {"fqn": ["cosmos_models", "osmo", "asset_metadata"], "database": "osmosis", "schema": "silver", "unique_id": "source.cosmos_models.osmo.asset_metadata", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "name": "asset_metadata", "source_name": "osmo", "source_description": "", "loader": "", "identifier": "asset_metadata", "resource_type": "source", "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": "osmosis.silver.asset_metadata", "created_at": 1676048038.66482}}, "macros": {"macro.cosmos_models.create_sps": {"unique_id": "macro.cosmos_models.create_sps", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "name": "create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'COSMOS' %}\n CREATE schema IF NOT EXISTS _internal;\n{{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.254368, "supported_languages": null}, "macro.cosmos_models.if_data_call_function": {"unique_id": "macro.cosmos_models.if_data_call_function", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/utils.sql", "original_file_path": "macros/utils.sql", "name": "if_data_call_function", "macro_sql": "{% macro if_data_call_function(\n func,\n target\n ) %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: Calling udf \" ~ func ~ \" on \" ~ target,\n True\n ) }}\n {% endif %}\n SELECT\n {{ func }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2551522, "supported_languages": null}, "macro.cosmos_models.generate_schema_name": {"unique_id": "macro.cosmos_models.generate_schema_name", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2555578, "supported_languages": null}, "macro.cosmos_models.generate_alias_name": {"unique_id": "macro.cosmos_models.generate_alias_name", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.255811, "supported_languages": null}, "macro.cosmos_models.run_sp_create_prod_clone": {"unique_id": "macro.cosmos_models.run_sp_create_prod_clone", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "name": "run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n{% set clone_query %}\ncall cosmos._internal.create_prod_clone('cosmos', 'cosmos_dev', 'internal_dev');\n{% endset %}\n\n{% do run_query(clone_query) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.256074, "supported_languages": null}, "macro.cosmos_models.create_udfs": {"unique_id": "macro.cosmos_models.create_udfs", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "name": "create_udfs", "macro_sql": "{% macro create_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% set sql %}\n CREATE schema if NOT EXISTS silver;\n{{ create_udtf_get_base_table(\n schema = \"streamline\"\n ) }}\n\n {% endset %}\n {% do run_query(sql) %}\n {% set sql %}\n {{ create_udf_get_cosmos_blocks() }}\n {{ create_udf_get_cosmos_transactions() }}\n {{ create_udf_get_cosmos_validators() }}\n {{ create_udf_get_cosmos_generic() }}\n {{ create_udf_get_cosmos_chainhead() }}\n\n {% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.create_udtf_get_base_table", "macro.dbt.run_query", "macro.cosmos_models.create_udf_get_cosmos_blocks", "macro.cosmos_models.create_udf_get_cosmos_transactions", "macro.cosmos_models.create_udf_get_cosmos_validators", "macro.cosmos_models.create_udf_get_cosmos_generic", "macro.cosmos_models.create_udf_get_cosmos_chainhead"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.257011, "supported_languages": null}, "macro.cosmos_models.set_query_tag": {"unique_id": "macro.cosmos_models.set_query_tag", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.257941, "supported_languages": null}, "macro.cosmos_models.sp_create_prod_clone": {"unique_id": "macro.cosmos_models.sp_create_prod_clone", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "name": "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_COSMOS_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_COSMOS_API;`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.258569, "supported_languages": null}, "macro.cosmos_models.tx_gaps": {"unique_id": "macro.cosmos_models.tx_gaps", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tests/tx_gaps.sql", "original_file_path": "macros/tests/tx_gaps.sql", "name": "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('silver__blocks') }}\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 tx_count <> model_tx_count\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2589078, "supported_languages": null}, "macro.cosmos_models.test_sequence_gaps": {"unique_id": "macro.cosmos_models.test_sequence_gaps", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tests/sequence_gaps.sql", "original_file_path": "macros/tests/sequence_gaps.sql", "name": "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 {% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.259899, "supported_languages": null}, "macro.cosmos_models.add_database_or_schema_tags": {"unique_id": "macro.cosmos_models.add_database_or_schema_tags", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/tags/add_database_or_schema_tags.sql", "name": "add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {{ set_database_tag_value(\n 'BLOCKCHAIN_NAME',\n 'COSMOS'\n ) }}\n {{ set_database_tag_value(\n 'BLOCKCHAIN_TYPE',\n 'IBC'\n ) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.cosmos_models.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.26018, "supported_languages": null}, "macro.cosmos_models.apply_meta_as_tags": {"unique_id": "macro.cosmos_models.apply_meta_as_tags", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.cosmos_models.create_tag_if_missing", "macro.cosmos_models.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.27157, "supported_languages": null}, "macro.cosmos_models.create_tag_if_missing": {"unique_id": "macro.cosmos_models.create_tag_if_missing", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.272044, "supported_languages": null}, "macro.cosmos_models.set_table_tag_value_if_different": {"unique_id": "macro.cosmos_models.set_table_tag_value_if_different", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2729778, "supported_languages": null}, "macro.cosmos_models.set_column_tag_value_if_different": {"unique_id": "macro.cosmos_models.set_column_tag_value_if_different", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2738938, "supported_languages": null}, "macro.cosmos_models.set_database_tag_value": {"unique_id": "macro.cosmos_models.set_database_tag_value", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.274247, "supported_languages": null}, "macro.cosmos_models.set_schema_tag_value": {"unique_id": "macro.cosmos_models.set_schema_tag_value", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2746072, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_blocks_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_blocks_realtime", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_blocks_realtime.sql", "original_file_path": "macros/streamline/sp_get_blocks_realtime.sql", "name": "create_sp_get_cosmos_blocks_realtime", "macro_sql": "{% macro create_sp_get_cosmos_blocks_realtime() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_blocks_realtime() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__blocks_realtime') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_blocks()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.274994, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_transactions_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_transactions_history", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_transactions_history.sql", "original_file_path": "macros/streamline/sp_get_transactions_history.sql", "name": "create_sp_get_cosmos_transactions_history", "macro_sql": "{% macro create_sp_get_cosmos_transactions_history() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_transactions_history() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__transactions_history') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_transactions()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2753458, "supported_languages": null}, "macro.cosmos_models.create_udtf_get_base_table": {"unique_id": "macro.cosmos_models.create_udtf_get_base_table", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/get_base_table_udtf.sql", "original_file_path": "macros/streamline/get_base_table_udtf.sql", "name": "create_udtf_get_base_table", "macro_sql": "{% macro create_udtf_get_base_table(schema) %}\n CREATE FUNCTION IF NOT EXISTS {{ schema }}.udtf_get_base_table(\n max_height INTEGER\n ) returns TABLE (\n height NUMBER\n ) AS $$ WITH base AS (\n SELECT\n ROW_NUMBER() over (\n ORDER BY\n SEQ4()\n ) AS id\n FROM\n TABLE(GENERATOR(rowcount => 100000000))\n )\nSELECT\n id AS height\nFROM\n base\nWHERE\n id <= max_height $$;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2755818, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_validators_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_validators_history", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_validators_history.sql", "original_file_path": "macros/streamline/sp_get_validators_history.sql", "name": "create_sp_get_cosmos_validators_history", "macro_sql": "{% macro create_sp_get_cosmos_validators_history() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_validators_history() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__validators_history') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_validators()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.275925, "supported_languages": null}, "macro.cosmos_models.create_udf_get_cosmos_blocks": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_blocks", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_cosmos_blocks", "macro_sql": "{% macro create_udf_get_cosmos_blocks() %}\n CREATE\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_blocks(\n json variant\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_blocks'\n {% else %}\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_blocks'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2768068, "supported_languages": null}, "macro.cosmos_models.create_udf_get_cosmos_transactions": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_transactions", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_cosmos_transactions", "macro_sql": "{% macro create_udf_get_cosmos_transactions() %}\n CREATE\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_transactions(\n json variant\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_transactions'\n {% else %}\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_transactions'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.276963, "supported_languages": null}, "macro.cosmos_models.create_udf_get_cosmos_validators": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_validators", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_cosmos_validators", "macro_sql": "{% macro create_udf_get_cosmos_validators() %}\n CREATE\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_validators(\n json variant\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_validators'\n {% else %}\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_validators'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.277122, "supported_languages": null}, "macro.cosmos_models.create_udf_get_cosmos_generic": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_generic", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_cosmos_generic", "macro_sql": "{% macro create_udf_get_cosmos_generic() %}\n CREATE\n OR REPLACE EXTERNAL FUNCTION streamline.udf_get_cosmos_generic(\n json variant\n ) returns text api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/bulk_get_cosmos_generic'\n {% else %}\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/bulk_get_cosmos_generic'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.277277, "supported_languages": null}, "macro.cosmos_models.create_udf_get_cosmos_chainhead": {"unique_id": "macro.cosmos_models.create_udf_get_cosmos_chainhead", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "name": "create_udf_get_cosmos_chainhead", "macro_sql": "{% macro create_udf_get_cosmos_chainhead() %}\n CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_get_cosmos_chainhead() returns variant api_integration = aws_cosmos_api AS {% if target.name == \"prod\" %}\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/get_cosmos_chainhead'\n {% else %}\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/get_cosmos_chainhead'\n {%- endif %};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.277441, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_transactions_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_transactions_realtime", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_transactions_realtime.sql", "original_file_path": "macros/streamline/sp_get_transactions_realtime.sql", "name": "create_sp_get_cosmos_transactions_realtime", "macro_sql": "{% macro create_sp_get_cosmos_transactions_realtime() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_transactions_realtime() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__transactions_realtime') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_transactions()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.277792, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_validators_realtime": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_validators_realtime", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_validators_realtime.sql", "original_file_path": "macros/streamline/sp_get_validators_realtime.sql", "name": "create_sp_get_cosmos_validators_realtime", "macro_sql": "{% macro create_sp_get_cosmos_validators_realtime() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_validators_realtime() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__validators_realtime') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_validators()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2781491, "supported_languages": null}, "macro.cosmos_models.create_sp_get_cosmos_blocks_history": {"unique_id": "macro.cosmos_models.create_sp_get_cosmos_blocks_history", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/sp_get_blocks_history.sql", "original_file_path": "macros/streamline/sp_get_blocks_history.sql", "name": "create_sp_get_cosmos_blocks_history", "macro_sql": "{% macro create_sp_get_cosmos_blocks_history() %}\n {% set sql %}\n CREATE\n OR REPLACE PROCEDURE streamline.sp_get_cosmos_blocks_history() returns variant LANGUAGE SQL AS $$\nDECLARE\n RESULT variant;\nrow_cnt INTEGER;\nBEGIN\n row_cnt:= (\n SELECT\n COUNT(1)\n FROM\n {{ ref('streamline__blocks_history') }}\n );\nif (\n row_cnt > 0\n ) THEN RESULT:= (\n SELECT\n streamline.udf_get_cosmos_blocks()\n );\n ELSE RESULT:= NULL;\nEND if;\nRETURN RESULT;\nEND;$$ {% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2784991, "supported_languages": null}, "macro.cosmos_models.create_aws_cosmos_api": {"unique_id": "macro.cosmos_models.create_aws_cosmos_api", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "macros/streamline/api_integrations.sql", "original_file_path": "macros/streamline/api_integrations.sql", "name": "create_aws_cosmos_api", "macro_sql": "{% macro create_aws_cosmos_api() %}\n {% if target.name == \"prod\" %}\n {% set sql %}\n CREATE api integration IF NOT EXISTS aws_cosmos_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::490041342817:role/snowflake-api-cosmos' api_allowed_prefixes = (\n 'https://z97ik1b2d0.execute-api.us-east-1.amazonaws.com/dev/',\n 'https://dazi3rled6.execute-api.us-east-1.amazonaws.com/prod/'\n ) enabled = TRUE;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.278858, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog": {"unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n {% set query %}\n with tables as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n table_type 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\n from {{ information_schema }}.tables\n\n ),\n\n columns as (\n\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\n from {{ information_schema }}.columns\n )\n\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n where (\n {%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n order by \"column_index\"\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.279713, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_table_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set transient = config.get('transient', default=true) -%}\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 {% if temporary -%}\n temporary\n {%- elif transient -%}\n transient\n {%- endif %} table {{ relation }} {% 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, temporary=temporary) }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.291946, "supported_languages": null}, "macro.dbt_snowflake.get_column_comment_sql": {"unique_id": "macro.dbt_snowflake.get_column_comment_sql", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.292562, "supported_languages": null}, "macro.dbt_snowflake.get_persist_docs_column_list": {"unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.292804, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as": {"unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\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 %} 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 {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.293441, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.294104, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_schemas": {"unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.294593, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation) %}\n {%- set sql -%}\n show terse objects in {{ schema_relation }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in schema {{ schema_relation }}! dbt can only get\n information about schemas with fewer than {{ maximum }} objects.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {%- do return(result) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.295031, "supported_languages": null}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2953138, "supported_languages": null}, "macro.dbt_snowflake.snowflake__rename_relation": {"unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.295532, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_type": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.29576, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n comment on {{ relation.type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.295983, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.296457, "supported_languages": null}, "macro.dbt_snowflake.get_current_query_tag": {"unique_id": "macro.dbt_snowflake.get_current_query_tag", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.296633, "supported_languages": null}, "macro.dbt_snowflake.set_query_tag": {"unique_id": "macro.dbt_snowflake.set_query_tag", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2967758, "supported_languages": null}, "macro.dbt_snowflake.snowflake__set_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.297197, "supported_languages": null}, "macro.dbt_snowflake.unset_query_tag": {"unique_id": "macro.dbt_snowflake.unset_query_tag", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.2973719, "supported_languages": null}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.297801, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.298523, "supported_languages": null}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.298712, "supported_languages": null}, "macro.dbt_snowflake.snowflake__truncate_relation": {"unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.298916, "supported_languages": null}, "macro.dbt_snowflake.snowflake__copy_grants": {"unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "name": "snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.299253, "supported_languages": null}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "name": "snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.29935, "supported_languages": null}, "macro.dbt_snowflake.materialization_test_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_test_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.299708, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, 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, predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.3007948, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.3010461, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.3012679, "supported_languages": null}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.303165, "supported_languages": null}, "macro.dbt_snowflake.materialization_seed_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.303425, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_view_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = 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 return(to_return) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.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": 1676048037.303935, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_table_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.306046, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.py_write_table": {"unique_id": "macro.dbt_snowflake.py_write_table", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation, temporary=False) %}\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.write_pandas does not have overwrite function\n df = session.createDataFrame(df)\n df.write.mode(\"overwrite\").save_as_table(\"{{ target_relation }}\", create_temp_table={{temporary}})\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.306237, "supported_languages": null}, "macro.dbt_snowflake.py_script_comment": {"unique_id": "macro.dbt_snowflake.py_script_comment", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "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%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.306328, "supported_languages": null}, "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type": {"unique_id": "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}\n\n /* {#\n If we are running multiple statements (DELETE + INSERT),\n we must first save the model query results as a temporary table\n in order to guarantee consistent inputs to both statements.\n\n If we are running a single statement (MERGE or INSERT alone),\n we can save the model query definition as a view instead,\n for faster overall incremental processing.\n #} */\n\n {% if language == 'sql' and (strategy in ('default', 'append', 'merge') or (unique_key is none)) %}\n {{ return('view') }}\n {% else %} {#-- play it safe -- #}\n {{ return('table') }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3076138, "supported_languages": null}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "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 {{ create_view_as(tmp_relation, compiled_code) }}\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('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, '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 %}", "resource_type": "macro", "tags": [], "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.create_view_as", "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": 1676048037.3104799, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.snowflake__get_incremental_default_sql": {"unique_id": "macro.dbt_snowflake.snowflake__get_incremental_default_sql", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.310627, "supported_languages": null}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.310975, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__current_timestamp": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.311268, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3114219, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3115141, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_backcompat": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "snowflake__current_timestamp_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3116002, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.311713, "supported_languages": null}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3119192, "supported_languages": null}, "macro.dbt_snowflake.snowflake__right": {"unique_id": "macro.dbt_snowflake.snowflake__right", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.312156, "supported_languages": null}, "macro.dbt_snowflake.snowflake__safe_cast": {"unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.312333, "supported_languages": null}, "macro.dbt_snowflake.snowflake__bool_or": {"unique_id": "macro.dbt_snowflake.snowflake__bool_or", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.312484, "supported_languages": null}, "macro.dbt_snowflake.snowflake__array_construct": {"unique_id": "macro.dbt_snowflake.snowflake__array_construct", "package_name": "dbt_snowflake", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/snowflake", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.312673, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.313685, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.313857, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.313979, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.314108, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.314229, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.314601, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.314928, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.315191, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.315611, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.315845, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3188741, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.319027, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.319226, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.319843, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.3199859, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3201358, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3213382, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.322526, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.325989, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326228, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326373, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326449, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326578, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326679, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.326858, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3276129, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3277729, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.327988, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.3283572, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.333606, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "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 {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.335404, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.33583, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3360908, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.336447, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.336766, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.338185, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.338665, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.339251, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.339456, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3400671, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.343916, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + 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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.345314, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.345521, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\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 );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.346158, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.346389, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.346949, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.347532, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.348334, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3485372, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.348703, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.348932, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.349094, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.349321, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.349484, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.349715, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.349875, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.350008, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3502452, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "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('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, '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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.354681, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3594081, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.3604548, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.3614888, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.362227, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.3645241, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.365011, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.36517, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3655412, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "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 as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.365901, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "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 {{ adapter.rename_relation(existing_relation, backup_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.368182, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.368493, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.368681, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "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=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.3700202, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.370383, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.370524, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.370677, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "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 }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.3708959, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "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 comparision 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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.395494, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4000142, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.40082, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.401032, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4014459, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.401619, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4017348, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.401859, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.40196, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.402096, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.402198, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.402637, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4027991, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.404145, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.404625, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4048471, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.405375, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.405608, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4058619, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.406271, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.406492, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.406844, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.40715, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4074082, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.407949, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.409549, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.410184, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.410439, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.412085, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 Partiton 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.413122, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4139469, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4141839, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.414474, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4145489, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.414884, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.415037, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4153018, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.415416, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.415673, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.415767, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.416117, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.416266, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.416499, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4165661, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.416833, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.416956, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.417257, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.417454, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.418051, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4184132, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4187431, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.418895, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.419179, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.419303, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.419562, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.419704, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.419961, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4201012, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.420355, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.42045, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.420741, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.420856, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.42111, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4211998, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4220722, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422205, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422412, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422549, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422688, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422818, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.422955, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.423108, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.423253, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.42339, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4235342, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.423667, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.423845, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.423978, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.424258, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4243698, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.424629, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4247239, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.425063, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.42531, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4254458, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.425942, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.426157, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.426352, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.426628, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.426739, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4271019, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.427315, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.427605, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4277189, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.428082, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4282508, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.428389, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.428545, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.429015, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4291468, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.42927, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.429365, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.429516, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4295838, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.429728, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.429874, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.43037, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.430494, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.430636, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4309871, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4338949, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.434039, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.434232, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.434485, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4347, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.434979, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.435136, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.435319, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.435482, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.435622, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4358022, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4360478, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.43627, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.436827, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.437033, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.437153, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4373262, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.437768, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4381351, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4396741, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.439775, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.439919, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440019, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440319, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440484, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440573, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440768, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.440934, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4411452, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.441317, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.441517, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4421172, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.442352, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.44257, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4427688, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.443784, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.444424, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.444572, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.444752, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4449012, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.445138, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4455621, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.446898, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.447123, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.447288, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.447422, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.447579, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.447795, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4479759, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.448236, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4483998, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.448538, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.450058, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4502668, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.450536, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.450697, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.450995, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4512022, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4517162, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.451943, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.452618, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.453963, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "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(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.454376, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_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[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4547799, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "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 def __repr__(self):\n return '{{ this }}'\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: ref(*args, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.455141, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.455204, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.455683, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.455887, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4561322, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4563751, "supported_languages": null}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('cast_array_to_string', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4568598, "supported_languages": null}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.456982, "supported_languages": null}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ type_string() }}){%- endset -%}\n {{ replace(replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.457237, "supported_languages": null}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.457421, "supported_languages": null}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.457515, "supported_languages": null}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458196, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458293, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458357, "supported_languages": null}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458417, "supported_languages": null}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('current_timestamp_in_utc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458669, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{ dbt_utils.current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458771, "supported_languages": null}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{ dbt_utils.current_timestamp() }})::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458893, "supported_languages": null}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.458984, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.459101, "supported_languages": null}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4595652, "supported_languages": null}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.459682, "supported_languages": null}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.459789, "supported_languages": null}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4598951, "supported_languages": null}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_construct', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.460475, "supported_languages": null}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.460692, "supported_languages": null}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.460813, "supported_languages": null}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.46093, "supported_languages": null}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.461061, "supported_languages": null}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {% do dbt_utils.xdb_deprecation_warning_without_replacement('array_append', model.package_name, model.name) %}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning_without_replacement", "macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4615848, "supported_languages": null}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.461704, "supported_languages": null}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.461865, "supported_languages": null}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4620311, "supported_languages": null}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/except.sql", "original_file_path": "macros/cross_db_utils/deprecated/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.462295, "supported_languages": null}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/except.sql", "original_file_path": "macros/cross_db_utils/deprecated/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n {% do dbt_utils.xdb_deprecation_warning('except', model.package_name, model.name) %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.except", "macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.462524, "supported_languages": null}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/replace.sql", "original_file_path": "macros/cross_db_utils/deprecated/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4628448, "supported_languages": null}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/replace.sql", "original_file_path": "macros/cross_db_utils/deprecated/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) -%}\n {% do dbt_utils.xdb_deprecation_warning('replace', model.package_name, model.name) %}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.replace", "macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.46313, "supported_languages": null}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/concat.sql", "original_file_path": "macros/cross_db_utils/deprecated/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.463418, "supported_languages": null}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/concat.sql", "original_file_path": "macros/cross_db_utils/deprecated/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {% do dbt_utils.xdb_deprecation_warning('concat', model.package_name, model.name) %}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.concat", "macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4636512, "supported_languages": null}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.464289, "supported_languages": null}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {% do dbt_utils.xdb_deprecation_warning('type_string', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_string", "macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4645162, "supported_languages": null}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.464658, "supported_languages": null}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {% do dbt_utils.xdb_deprecation_warning('type_timestamp', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_timestamp", "macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.464894, "supported_languages": null}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.465039, "supported_languages": null}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {% do dbt_utils.xdb_deprecation_warning('type_float', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_float", "macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4652631, "supported_languages": null}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4654, "supported_languages": null}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {% do dbt_utils.xdb_deprecation_warning('type_numeric', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_numeric", "macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.465625, "supported_languages": null}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.465764, "supported_languages": null}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {% do dbt_utils.xdb_deprecation_warning('type_bigint', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_bigint", "macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4662, "supported_languages": null}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.466345, "supported_languages": null}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datatypes.sql", "original_file_path": "macros/cross_db_utils/deprecated/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n {% do dbt_utils.xdb_deprecation_warning('type_int', model.package_name, model.name) %}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.type_int", "macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4665768, "supported_languages": null}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/length.sql", "original_file_path": "macros/cross_db_utils/deprecated/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.466858, "supported_languages": null}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/length.sql", "original_file_path": "macros/cross_db_utils/deprecated/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('length', model.package_name, model.name) %}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.length", "macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4671009, "supported_languages": null}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/dateadd.sql", "original_file_path": "macros/cross_db_utils/deprecated/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.467432, "supported_languages": null}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/dateadd.sql", "original_file_path": "macros/cross_db_utils/deprecated/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n {% do dbt_utils.xdb_deprecation_warning('dateadd', model.package_name, model.name) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.dateadd", "macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.46772, "supported_languages": null}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/intersect.sql", "original_file_path": "macros/cross_db_utils/deprecated/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.467984, "supported_languages": null}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/intersect.sql", "original_file_path": "macros/cross_db_utils/deprecated/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n {% do dbt_utils.xdb_deprecation_warning('intersect', model.package_name, model.name) %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.intersect", "macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.468214, "supported_languages": null}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.468506, "supported_languages": null}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/deprecated/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) %}\n {% do dbt_utils.xdb_deprecation_warning('escape_single_quotes', model.package_name, model.name) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.escape_single_quotes", "macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.468766, "supported_languages": null}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/right.sql", "original_file_path": "macros/cross_db_utils/deprecated/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4690719, "supported_languages": null}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/right.sql", "original_file_path": "macros/cross_db_utils/deprecated/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('right', model.package_name, model.name) %}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.right", "macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.469336, "supported_languages": null}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/listagg.sql", "original_file_path": "macros/cross_db_utils/deprecated/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.469719, "supported_languages": null}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/listagg.sql", "original_file_path": "macros/cross_db_utils/deprecated/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {% do dbt_utils.xdb_deprecation_warning('listagg', model.package_name, model.name) %}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.listagg", "macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.470048, "supported_languages": null}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datediff.sql", "original_file_path": "macros/cross_db_utils/deprecated/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4703732, "supported_languages": null}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/datediff.sql", "original_file_path": "macros/cross_db_utils/deprecated/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('datediff', model.package_name, model.name) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.datediff", "macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.470655, "supported_languages": null}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/safe_cast.sql", "original_file_path": "macros/cross_db_utils/deprecated/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4709618, "supported_languages": null}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/safe_cast.sql", "original_file_path": "macros/cross_db_utils/deprecated/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {% do dbt_utils.xdb_deprecation_warning('safe_cast', model.package_name, model.name) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.safe_cast", "macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.47123, "supported_languages": null}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/hash.sql", "original_file_path": "macros/cross_db_utils/deprecated/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4715068, "supported_languages": null}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/hash.sql", "original_file_path": "macros/cross_db_utils/deprecated/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n {% do dbt_utils.xdb_deprecation_warning('hash', model.package_name, model.name) %}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.hash", "macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.471807, "supported_languages": null}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.472073, "supported_languages": null}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/deprecated/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n {% do dbt_utils.xdb_deprecation_warning('cast_bool_to_text', model.package_name, model.name) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.cast_bool_to_text", "macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4723, "supported_languages": null}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.472737, "supported_languages": null}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.472833, "supported_languages": null}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/identifier.sql", "original_file_path": "macros/cross_db_utils/deprecated/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4729228, "supported_languages": null}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/any_value.sql", "original_file_path": "macros/cross_db_utils/deprecated/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.473206, "supported_languages": null}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/any_value.sql", "original_file_path": "macros/cross_db_utils/deprecated/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('any_value', model.package_name, model.name) %}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.any_value", "macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.473446, "supported_languages": null}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/position.sql", "original_file_path": "macros/cross_db_utils/deprecated/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.473768, "supported_languages": null}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/position.sql", "original_file_path": "macros/cross_db_utils/deprecated/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) -%}\n {% do dbt_utils.xdb_deprecation_warning('position', model.package_name, model.name) %}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.position", "macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.474027, "supported_languages": null}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/literal.sql", "original_file_path": "macros/cross_db_utils/deprecated/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.474303, "supported_languages": null}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/literal.sql", "original_file_path": "macros/cross_db_utils/deprecated/literal.sql", "name": "default__string_literal", "macro_sql": "{%- macro default__string_literal(value) -%}\n {% do dbt_utils.xdb_deprecation_warning('string_literal', model.package_name, model.name) %}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.string_literal", "macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.474538, "supported_languages": null}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/bool_or.sql", "original_file_path": "macros/cross_db_utils/deprecated/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.474817, "supported_languages": null}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/bool_or.sql", "original_file_path": "macros/cross_db_utils/deprecated/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n {% do dbt_utils.xdb_deprecation_warning('bool_or', model.package_name, model.name) %}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.bool_or", "macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4750552, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning", "macro_sql": "{% macro xdb_deprecation_warning(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package. Use `\" ~ macro ~ \"` (no prefix) instead. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.475462, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning_without_replacement": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning_without_replacement", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning_without_replacement", "macro_sql": "{% macro xdb_deprecation_warning_without_replacement(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is deprecated and will be removed in a future version of the package, once equivalent functionality is implemented in dbt Core. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4756842, "supported_languages": null}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/last_day.sql", "original_file_path": "macros/cross_db_utils/deprecated/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.47599, "supported_languages": null}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/last_day.sql", "original_file_path": "macros/cross_db_utils/deprecated/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) %}\n {% do dbt_utils.xdb_deprecation_warning('last_day', model.package_name, model.name) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.last_day", "macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4762518, "supported_languages": null}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/split_part.sql", "original_file_path": "macros/cross_db_utils/deprecated/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4765792, "supported_languages": null}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/split_part.sql", "original_file_path": "macros/cross_db_utils/deprecated/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n {% do dbt_utils.xdb_deprecation_warning('split_part', model.package_name, model.name) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.split_part", "macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.476934, "supported_languages": null}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/date_trunc.sql", "original_file_path": "macros/cross_db_utils/deprecated/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4772322, "supported_languages": null}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/date_trunc.sql", "original_file_path": "macros/cross_db_utils/deprecated/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n {% do dbt_utils.xdb_deprecation_warning('date_trunc', model.package_name, model.name) %}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.xdb_deprecation_warning", "macro.dbt_utils.date_trunc", "macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4774919, "supported_languages": null}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.483077, "supported_languages": null}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{ dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\") }},\n {{ dbt_utils.current_timestamp() }}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{ datediff('start_timestamp',\n 'stop_timestamp',\n period) }} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.483528, "supported_languages": null}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4838111, "supported_languages": null}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.484237, "supported_languages": null}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- set deprecation_warning = \"Warning: the `insert_by_period` materialization will be removed from dbt_utils in version 1.0.0. Install from dbt-labs/dbt-labs-experimental-features instead (see https://github.com/dbt-labs/dbt-utils/discussions/487). The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(deprecation_warning) -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n\n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.488804, "supported_languages": ["sql"]}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4891882, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n split_part(\n split_part(\n replace(\n replace(\n replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.489567, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.490007, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n replace(\n replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ position(\"'/'\", stripped_url) }}, 0),\n {{ position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n split_part(\n right(\n stripped_url,\n length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ safe_cast(\n parsed_path,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4905071, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.490834, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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 = split_part(split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4910998, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1676048037.4916182, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4918232, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4922612, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = '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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.492552, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.493205, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.493522, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.493938, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dateadd(datepart, interval * -1, current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.494217, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.494555, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.494703, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4952672, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4957418, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4962611, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.496602, "supported_languages": null}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.4969962, "supported_languages": null}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.497138, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1676048037.49746, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.497613, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.4981918, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.498763, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.499291, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "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 {{ except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.49958, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "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": 1676048037.500021, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.500275, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.500692, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\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\nwith validation as (\n select\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),\nvalidation_errors as (\n select\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.501138, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5017412, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\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 {{ type_timestamp() }})= cast({{ dateadd(datepart, interval, previous_column_name) }} as {{ type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.502315, "supported_languages": null}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.502719, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.502862, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5035641, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "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 {{ except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.504318, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5073762, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "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 nore 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.508704, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5089762, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.509116, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.509532, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.50981, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.509977, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.510237, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.510391, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "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\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5108302, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.511583, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.512247, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.512819, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.513045, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "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 \"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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.51342, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.51381, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.514213, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.514905, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.515674, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5164769, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.516868, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.517031, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.517505, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.518126, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.518891, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.519286, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5195441, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5201979, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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 cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "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": 1676048037.521116, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5226839, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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 {{ type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.524648, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5271559, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "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\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 in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\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({{ string_literal(relation) }} as {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5298939, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.530231, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.530459, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.532655, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.532862, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5330508, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5332181, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.533365, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5335171, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.534074, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ hash(concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.534871, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.535245, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.535488, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.53582, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.536118, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.537633, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.537951, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.538651, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5391018, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.540101, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.541418, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.542388, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.543116, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.543564, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5442078, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.54549, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "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, type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5459251, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "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, type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.54632, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.546483, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.546883, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.547402, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.54779, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.547911, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.548031, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.549021, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.549268, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.549838, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5505338, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.558563, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"unique_id": "macro.dbt_date.default__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5604742, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"unique_id": "macro.dbt_date.postgres__get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.562695, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.563651, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"unique_id": "macro.dbt_date.default__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.564306, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"unique_id": "macro.dbt_date.bigquery__get_base_dates", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.564898, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"unique_id": "macro.dbt_date.get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.565556, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"unique_id": "macro.dbt_date.default__get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5660732, "supported_languages": null}, "macro.dbt_date.date_spine": {"unique_id": "macro.dbt_date.date_spine", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.566283, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"unique_id": "macro.dbt_date.default__date_spine", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5665998, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"unique_id": "macro.dbt_date.get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5673778, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"unique_id": "macro.dbt_date.default__get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.56774, "supported_languages": null}, "macro.dbt_date.generate_series": {"unique_id": "macro.dbt_date.generate_series", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.567907, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"unique_id": "macro.dbt_date.default__generate_series", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.568351, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"unique_id": "macro.dbt_date.get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5699468, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.570463, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.571331, "supported_languages": null}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "name": "tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.571558, "supported_languages": null}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "name": "next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5717518, "supported_languages": null}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.571997, "supported_languages": null}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "name": "next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.572191, "supported_languages": null}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.572764, "supported_languages": null}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.572994, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.573174, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.573351, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.573546, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.573847, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.573965, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.574087, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "name": "bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.574174, "supported_languages": null}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.57442, "supported_languages": null}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.574872, "supported_languages": null}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.575001, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.575252, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.575475, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.5759292, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "_iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.576063, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"unique_id": "macro.dbt_date.default__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.57618, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"unique_id": "macro.dbt_date.snowflake__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5762959, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"unique_id": "macro.dbt_date.postgres__iso_week_start", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "name": "postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.576415, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5768042, "supported_languages": null}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "name": "last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.577006, "supported_languages": null}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "name": "now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1676048037.5772128, "supported_languages": null}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.577539, "supported_languages": null}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "name": "today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.577729, "supported_languages": null}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "name": "last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.577918, "supported_languages": null}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5782259, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"unique_id": "macro.dbt_date.default__day_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5783439, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"unique_id": "macro.dbt_date.postgres__day_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.57846, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"unique_id": "macro.dbt_date.redshift__day_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.578614, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"unique_id": "macro.dbt_date.round_timestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "name": "round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.57886, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.58013, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.580373, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.580607, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.581011, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.581353, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.581768, "supported_languages": null}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.582083, "supported_languages": null}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.582197, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "name": "bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.582307, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.5826502, "supported_languages": null}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5828822, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"unique_id": "macro.dbt_date.redshift__day_of_month", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.583137, "supported_languages": null}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "name": "yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.583371, "supported_languages": null}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5849159, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"unique_id": "macro.dbt_date.default__day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.58517, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"unique_id": "macro.dbt_date.snowflake__day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.585529, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"unique_id": "macro.dbt_date.bigquery__day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.585779, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"unique_id": "macro.dbt_date.postgres__day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5861492, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"unique_id": "macro.dbt_date.redshift__day_of_week", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.586473, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.586911, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5870888, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"unique_id": "macro.dbt_date.default__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.587211, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"unique_id": "macro.dbt_date.snowflake__iso_week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "name": "snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.587329, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.5876842, "supported_languages": null}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.snowflake__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5881422, "supported_languages": null}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5883148, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.588502, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.588673, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.588851, "supported_languages": null}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.589247, "supported_languages": null}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.58982, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"unique_id": "macro.dbt_date.default__week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.589995, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"unique_id": "macro.dbt_date.postgres__week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.590126, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.591, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.591181, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5913138, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.591454, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5916522, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.591815, "supported_languages": null}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.59217, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"unique_id": "macro.dbt_date.iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.592681, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"unique_id": "macro.dbt_date._iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.592855, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"unique_id": "macro.dbt_date.default__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.592982, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5931032, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"unique_id": "macro.dbt_date.postgres__iso_week_of_year", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.593228, "supported_languages": null}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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", "resource_type": "macro", "tags": [], "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": 1676048037.593677, "supported_languages": null}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.593796, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.5939672, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.594144, "supported_languages": null}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "name": "next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1676048037.594368, "supported_languages": null}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "name": "last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "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": 1676048037.594594, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595032, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5951, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595165, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5952299, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595365, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595427, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595489, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "name": "postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5955489, "supported_languages": null}, "macro.dbt_expectations.group_by": {"unique_id": "macro.dbt_expectations.group_by", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.595826, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"unique_id": "macro.dbt_expectations.default__group_by", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5960488, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.596641, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5968142, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.597076, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.597339, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.597474, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.597652, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.597931, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.59803, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.598115, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "name": "snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.598206, "supported_languages": null}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.snowflake__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5985248, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.598656, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.598719, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.598786, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.59885, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "name": "redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.5989099, "supported_languages": null}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "name": "median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.599126, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.599543, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.599725, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.599896, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.600327, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.600866, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.601908, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.602567, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"unique_id": "macro.dbt_expectations.test_expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6034281, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6037052, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"unique_id": "macro.dbt_expectations.default__expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6042309, "supported_languages": null}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.608765, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.609302, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6097112, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"unique_id": "macro.dbt_expectations.default__test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.610821, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.61107, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "name": "default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.611161, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.6116621, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.6125991, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.613191, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.613686, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6143901, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.614978, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.6158972, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.616835, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.617741, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"unique_id": "macro.dbt_expectations._get_like_pattern_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.617994, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.61851, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.619529, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ 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 {{ type_timestamp() }}))\n <\n cast({{ dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.620033, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.621131, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model, compare_model, factor=1, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.621504, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.622498, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.624577, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ 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 {{ dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.625439, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6264908, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.627389, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.627636, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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{% 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{%- endtest -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.628289, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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, compare_model, factor, row_condition=None, compare_row_condition=None) -%}\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model, compare_model,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "resource_type": "macro", "tags": [], "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": 1676048037.628612, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6296918, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "name": "_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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.630059, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.631271, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "name": "_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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.631666, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.632114, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6324632, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6333811, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.634219, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6350179, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.636215, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.636647, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.6369028, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.637584, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.638649, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.639593, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "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": 1676048037.6398258, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.640225, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.640646, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.641361, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6420832, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.642848, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.643593, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.644364, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.645161, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model, column_name,\n value_set,\n top_n,\n quote_values=False,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (model, column_name, value_set, top_n, quote_values, data_type, row_condition) }}\n{%- endtest %}", "resource_type": "macro", "tags": [], "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": 1676048037.6466181, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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, 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.647347, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.648167, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.64876, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6493518, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.650057, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.651237, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.651563, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6522691, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.65297, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 quote_values=False,\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6535769, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=False,\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.654372, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.655045, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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({{ datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ type_int() }}),\n cast({{interval}} as {{ type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ 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 {{dateadd(\n date_part,\n \"mod(\n cast(\" ~ datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt_utils.datediff", "macro.dbt_utils.type_int", "macro.dbt_utils.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6585128, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "_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", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.662288, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.662771, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 {{ 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 {{ dateadd(period, -test_periods, date_trunc(period, dbt_date.now())) }}\n as {{ type_timestamp() }})\n and\n metric_period < {{ 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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt_utils.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6640441, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.664866, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.665349, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "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": 1676048037.666671, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.667605, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.669354, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.670161, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.670721, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.6713321, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "package_name": "dbt_expectations", "root_path": "/Users/ericlaurello/git/cosmos-models/dbt_packages/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", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676048037.672547, "supported_languages": null}}, "docs": {"cosmos_models.label": {"unique_id": "cosmos_models.label", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/label.md", "original_file_path": "models/descriptions/label.md", "name": "label", "block_contents": "The label or name of the address."}, "cosmos_models.vote_weight": {"unique_id": "cosmos_models.vote_weight", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/vote_weight.md", "original_file_path": "models/descriptions/vote_weight.md", "name": "vote_weight", "block_contents": "Denotes what portion of a user's stake is put toward the voting option. If \"1\", 100% of the voter's voting power is put toward the selected option."}, "cosmos_models.blockchain": {"unique_id": "cosmos_models.blockchain", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/blockchain.md", "original_file_path": "models/descriptions/blockchain.md", "name": "blockchain", "block_contents": "In this table, always Cosmos. Used to join to cross-chain tables."}, "cosmos_models.codespace": {"unique_id": "cosmos_models.codespace", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/codespace.md", "original_file_path": "models/descriptions/codespace.md", "name": "codespace", "block_contents": "Namespace for the code."}, "cosmos_models.tx_count": {"unique_id": "cosmos_models.tx_count", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_count.md", "original_file_path": "models/descriptions/tx_count.md", "name": "tx_count", "block_contents": "The number of transactions that occurred during a block."}, "cosmos_models.msg_type": {"unique_id": "cosmos_models.msg_type", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msg_type.md", "original_file_path": "models/descriptions/msg_type.md", "name": "msg_type", "block_contents": "A string containing information about the type of message occurring."}, "cosmos_models.tx_id": {"unique_id": "cosmos_models.tx_id", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_id.md", "original_file_path": "models/descriptions/tx_id.md", "name": "tx_id", "block_contents": "A unique key that identifies a transaction. Called \"TxHash\" on block explorers."}, "cosmos_models.proposer": {"unique_id": "cosmos_models.proposer", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/proposer.md", "original_file_path": "models/descriptions/proposer.md", "name": "proposer", "block_contents": "The address of the validator that submitted the proposal."}, "cosmos_models.gas_used": {"unique_id": "cosmos_models.gas_used", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/gas_used.md", "original_file_path": "models/descriptions/gas_used.md", "name": "gas_used", "block_contents": "The amount of gas consumed by the transaction."}, "cosmos_models.tx_from": {"unique_id": "cosmos_models.tx_from", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_from.md", "original_file_path": "models/descriptions/tx_from.md", "name": "tx_from", "block_contents": "The wallet address of the individual who initiated the transaction"}, "cosmos_models.inserted_timestamp": {"unique_id": "cosmos_models.inserted_timestamp", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/inserted_timestamp.md", "original_file_path": "models/descriptions/inserted_timestamp.md", "name": "inserted_timestamp", "block_contents": "The date and time at which the block or transaction was inserted in the bronze tables."}, "cosmos_models.proposer_address": {"unique_id": "cosmos_models.proposer_address", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/proposer_address.md", "original_file_path": "models/descriptions/proposer_address.md", "name": "proposer_address", "block_contents": "The address of the validator that proposed the block."}, "cosmos_models.tx_succeeded": {"unique_id": "cosmos_models.tx_succeeded", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_succeeded.md", "original_file_path": "models/descriptions/tx_succeeded.md", "name": "tx_succeeded", "block_contents": "Transaction status is \"TRUE\" if the transaction went through, \"FALSE\" if the transaction failed."}, "cosmos_models.proposal_type": {"unique_id": "cosmos_models.proposal_type", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/proposal_type.md", "original_file_path": "models/descriptions/proposal_type.md", "name": "proposal_type", "block_contents": "The type of proposal that was submitted."}, "cosmos_models.vote_option": {"unique_id": "cosmos_models.vote_option", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/vote_option.md", "original_file_path": "models/descriptions/vote_option.md", "name": "vote_option", "block_contents": "How the delegator voted on the proposal."}, "cosmos_models.attribute_key": {"unique_id": "cosmos_models.attribute_key", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/attribute_key.md", "original_file_path": "models/descriptions/attribute_key.md", "name": "attribute_key", "block_contents": "The key from the key-value pair from the message attribute"}, "cosmos_models.label_subtype": {"unique_id": "cosmos_models.label_subtype", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/label_subtype.md", "original_file_path": "models/descriptions/label_subtype.md", "name": "label_subtype", "block_contents": "Adds more detail to the label type."}, "cosmos_models.attribute_value": {"unique_id": "cosmos_models.attribute_value", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/attribute_value.md", "original_file_path": "models/descriptions/attribute_value.md", "name": "attribute_value", "block_contents": "The value from the key-value pair from the message attribute"}, "cosmos_models.msg_index": {"unique_id": "cosmos_models.msg_index", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msg_index.md", "original_file_path": "models/descriptions/msg_index.md", "name": "msg_index", "block_contents": "Short for \"message index,\" the position in which messages occur in a transaction."}, "cosmos_models.creator": {"unique_id": "cosmos_models.creator", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/creator.md", "original_file_path": "models/descriptions/creator.md", "name": "creator", "block_contents": "Name of the label creator - for now, this will always be \"Flipside.\""}, "cosmos_models.msg": {"unique_id": "cosmos_models.msg", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msg.md", "original_file_path": "models/descriptions/msg.md", "name": "msg", "block_contents": "The flattened underlying json from the messages or events within the transactions"}, "cosmos_models.currency": {"unique_id": "cosmos_models.currency", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/currency.md", "original_file_path": "models/descriptions/currency.md", "name": "currency", "block_contents": "The currency that was used in the transaction message."}, "cosmos_models.tx_code": {"unique_id": "cosmos_models.tx_code", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_code.md", "original_file_path": "models/descriptions/tx_code.md", "name": "tx_code", "block_contents": "A number that corresponds to various error codes. When \"0\", the transaction is successful. Non-zero numbers signify different types of transaction failures."}, "cosmos_models.amount": {"unique_id": "cosmos_models.amount", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/amount.md", "original_file_path": "models/descriptions/amount.md", "name": "amount", "block_contents": "The amount that was used in the transaction message."}, "cosmos_models.transfer_type": {"unique_id": "cosmos_models.transfer_type", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/transfer_type.md", "original_file_path": "models/descriptions/transfer_type.md", "name": "transfer_type", "block_contents": "Details on the type of transfer occurring during the transaction. \"Transfer_In\" = depositing tokens onto the Cosmos Hub. \"Transfer_out\" = withdrawing tokens from the Cosmos Hub. \"Cosmos\" = wallet to wallet transfer on the Cosmos Hub."}, "cosmos_models.address": {"unique_id": "cosmos_models.address", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/address.md", "original_file_path": "models/descriptions/address.md", "name": "address", "block_contents": "Address unique to an individual wallet, validator, or token."}, "cosmos_models.sender": {"unique_id": "cosmos_models.sender", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/sender.md", "original_file_path": "models/descriptions/sender.md", "name": "sender", "block_contents": "The wallet address of the individual sent tokens in the transfer."}, "cosmos_models.attribute_index": {"unique_id": "cosmos_models.attribute_index", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/attribute_index.md", "original_file_path": "models/descriptions/attribute_index.md", "name": "attribute_index", "block_contents": "The position in which attributes occur within a message"}, "cosmos_models.raw_metadata": {"unique_id": "cosmos_models.raw_metadata", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/raw_metadata.md", "original_file_path": "models/descriptions/raw_metadata.md", "name": "raw_metadata", "block_contents": "Additional details about the validator or token in json format."}, "cosmos_models.decimal": {"unique_id": "cosmos_models.decimal", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/decimal.md", "original_file_path": "models/descriptions/decimal.md", "name": "decimal", "block_contents": "Divide amount by decimal to get the actual amount of currency being transferred."}, "cosmos_models.validator_hash": {"unique_id": "cosmos_models.validator_hash", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/validator_hash.md", "original_file_path": "models/descriptions/validator_hash.md", "name": "validator_hash", "block_contents": "The root hash of the new validator set."}, "cosmos_models.partition_by_block_id": {"unique_id": "cosmos_models.partition_by_block_id", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/partition_by_block_id.md", "original_file_path": "models/descriptions/partition_by_block_id.md", "name": "partition_by_block_id", "block_contents": "An internal column allowing incremental logic to be used in the code."}, "cosmos_models.receiver": {"unique_id": "cosmos_models.receiver", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/receiver.md", "original_file_path": "models/descriptions/receiver.md", "name": "receiver", "block_contents": "The wallet address of the individual received tokens in the transfer."}, "cosmos_models.project_name": {"unique_id": "cosmos_models.project_name", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/project_name.md", "original_file_path": "models/descriptions/project_name.md", "name": "project_name", "block_contents": "The name of the project the label belongs to."}, "cosmos_models.fee": {"unique_id": "cosmos_models.fee", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/fee.md", "original_file_path": "models/descriptions/fee.md", "name": "fee", "block_contents": "The fee is paid by the initiator of the transaction. Fee = gas * gas price."}, "cosmos_models.msg_group": {"unique_id": "cosmos_models.msg_group", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msg_group.md", "original_file_path": "models/descriptions/msg_group.md", "name": "msg_group", "block_contents": "Value grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a \":\" seperator. The subgroup will always be 0 except for \"Exec\" actions. NULL group means messages are related to the header (overall transaction)"}, "cosmos_models.msgs": {"unique_id": "cosmos_models.msgs", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msgs.md", "original_file_path": "models/descriptions/msgs.md", "name": "msgs", "block_contents": "The underlying json from the messages or events within the transactions"}, "cosmos_models.label_type": {"unique_id": "cosmos_models.label_type", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/label_type.md", "original_file_path": "models/descriptions/label_type.md", "name": "label_type", "block_contents": "A broad category that describes what a label is representing."}, "cosmos_models.block_id": {"unique_id": "cosmos_models.block_id", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/block_id.md", "original_file_path": "models/descriptions/block_id.md", "name": "block_id", "block_contents": "The block height the block was recorded at."}, "cosmos_models.fee_denom": {"unique_id": "cosmos_models.fee_denom", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/fee_denom.md", "original_file_path": "models/descriptions/fee_denom.md", "name": "fee_denom", "block_contents": "The denominator of the transaction fee."}, "cosmos_models.msg_sub_group": {"unique_id": "cosmos_models.msg_sub_group", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/msg_sub_group.md", "original_file_path": "models/descriptions/msg_sub_group.md", "name": "msg_sub_group", "block_contents": "Silver only -- Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)"}, "cosmos_models.tx_log": {"unique_id": "cosmos_models.tx_log", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/tx_log.md", "original_file_path": "models/descriptions/tx_log.md", "name": "tx_log", "block_contents": "A string that contains the transaction logs, which are logs written by the program interacted with during the transaction."}, "cosmos_models._unique_key": {"unique_id": "cosmos_models._unique_key", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/_unique_key.md", "original_file_path": "models/descriptions/_unique_key.md", "name": "_unique_key", "block_contents": "The unique key for the table."}, "cosmos_models.voter": {"unique_id": "cosmos_models.voter", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/voter.md", "original_file_path": "models/descriptions/voter.md", "name": "voter", "block_contents": "Address of the delegator that voted on the proposal."}, "cosmos_models.chain_id": {"unique_id": "cosmos_models.chain_id", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/chain_id.md", "original_file_path": "models/descriptions/chain_id.md", "name": "chain_id", "block_contents": "The name and version of the blockchain."}, "cosmos_models.gas_wanted": {"unique_id": "cosmos_models.gas_wanted", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/gas_wanted.md", "original_file_path": "models/descriptions/gas_wanted.md", "name": "gas_wanted", "block_contents": "Amount of gas requested for a transaction. It is provided by users when the transaction is generated."}, "cosmos_models.depositor": {"unique_id": "cosmos_models.depositor", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/depositor.md", "original_file_path": "models/descriptions/depositor.md", "name": "depositor", "block_contents": "The wallet address of the individual who deposited funds into the proposal. At least 500 OSMO must be deposited into a proposal after it is submitted for it to go to vote."}, "cosmos_models.block_timestamp": {"unique_id": "cosmos_models.block_timestamp", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/block_timestamp.md", "original_file_path": "models/descriptions/block_timestamp.md", "name": "block_timestamp", "block_contents": "The date and time at which the block began."}, "cosmos_models.proposal_id": {"unique_id": "cosmos_models.proposal_id", "package_name": "cosmos_models", "root_path": "/Users/ericlaurello/git/cosmos-models", "path": "descriptions/proposal_id.md", "original_file_path": "models/descriptions/proposal_id.md", "name": "proposal_id", "block_contents": "Numeric ID that corresponds to the proposal."}, "dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Users/ericlaurello/dbt-env/lib/python3.10/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__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"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.cosmos_models.bronze__tx_search": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"], "model.cosmos_models.bronze__blocks": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"], "model.cosmos_models.silver__governance_proposal_deposits": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"], "model.cosmos_models.silver__transactions": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.silver__blocks"], "model.cosmos_models.silver__transfers": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions"], "model.cosmos_models.silver__governance_submit_proposal": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes"], "model.cosmos_models.silver__msg_attributes": ["model.cosmos_models.silver__msgs"], "model.cosmos_models.silver__governance_votes": ["model.cosmos_models.silver__msg_attributes"], "model.cosmos_models.silver__validators": ["model.cosmos_models.bronze_api__get_validator_metadata"], "model.cosmos_models.silver__blocks": ["model.cosmos_models.bronze__blocks"], "model.cosmos_models.silver__msgs": ["model.cosmos_models.silver__transactions"], "model.cosmos_models.bronze_api__get_validator_metadata": [], "model.cosmos_models.core__fact_transactions": ["model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__msg_attributes", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions", "model.cosmos_models.silver__transactions"], "model.cosmos_models.core__dim_tokens": ["source.cosmos_models.osmo.asset_metadata"], "model.cosmos_models.core__fact_msgs": ["model.cosmos_models.silver__msgs"], "model.cosmos_models.core__fact_blocks": ["model.cosmos_models.silver__blocks"], "model.cosmos_models.core__fact_msg_attributes": ["model.cosmos_models.silver__msg_attributes"], "model.cosmos_models.core__fact_governance_proposal_deposits": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.silver__governance_proposal_deposits"], "model.cosmos_models.core__dim_vote_options": ["model.cosmos_models.silver__governance_votes"], "model.cosmos_models.core__fact_transfers": ["model.cosmos_models.silver__transfers"], "model.cosmos_models.core__fact_governance_votes": ["model.cosmos_models.silver__governance_votes"], "model.cosmos_models.core__fact_validators": ["model.cosmos_models.silver__validators"], "model.cosmos_models.core__fact_governance_submit_proposal": ["model.cosmos_models.silver__governance_submit_proposal"], "model.cosmos_models.core__dim_labels": ["model.cosmos_models.core__dim_tokens", "model.cosmos_models.core__fact_validators"], "model.cosmos_models.streamline__complete_transactions": ["source.cosmos_models.bronze_streamline.tx_search", "source.cosmos_models.bronze_streamline.tx_search"], "model.cosmos_models.streamline__validators_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators"], "model.cosmos_models.streamline__transactions_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions"], "model.cosmos_models.streamline__transactions_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_transactions"], "model.cosmos_models.streamline__validators_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators"], "model.cosmos_models.streamline__complete_blocks": ["source.cosmos_models.bronze_streamline.blocks", "source.cosmos_models.bronze_streamline.blocks"], "model.cosmos_models.streamline__complete_validators": ["source.cosmos_models.bronze_streamline.validators", "source.cosmos_models.bronze_streamline.validators"], "model.cosmos_models.streamline__blocks_history": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks"], "model.cosmos_models.streamline__blocks_realtime": ["model.cosmos_models.streamline__blocks", "model.cosmos_models.streamline__complete_blocks"], "model.cosmos_models.streamline__blocks": [], "operation.cosmos_models.cosmos_models-on-run-start-0": [], "operation.cosmos_models.cosmos_models-on-run-start-1": [], "operation.cosmos_models.cosmos_models-on-run-end-0": [], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": ["model.cosmos_models.silver__msg_attributes"], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0": ["model.cosmos_models.silver__governance_votes"], "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": ["model.cosmos_models.silver__validators"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": ["model.cosmos_models.silver__validators"], "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": ["model.cosmos_models.silver__blocks"], "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": ["model.cosmos_models.silver__transactions"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": ["model.cosmos_models.silver__governance_proposal_deposits"], "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": ["model.cosmos_models.silver__transfers"], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": ["model.cosmos_models.silver__governance_submit_proposal"], "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": ["model.cosmos_models.silver__msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": ["model.cosmos_models.core__fact_blocks"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": ["model.cosmos_models.core__fact_transactions"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": ["model.cosmos_models.core__dim_tokens"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": ["model.cosmos_models.core__fact_msgs"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": ["model.cosmos_models.core__fact_governance_votes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": ["model.cosmos_models.core__fact_validators"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": ["model.cosmos_models.core__dim_labels"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": ["model.cosmos_models.core__fact_governance_submit_proposal"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": ["model.cosmos_models.core__fact_governance_proposal_deposits"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": ["model.cosmos_models.core__fact_msg_attributes"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": ["model.cosmos_models.core__dim_vote_options"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": ["model.cosmos_models.core__dim_vote_options"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": ["model.cosmos_models.core__fact_transfers"], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": ["model.cosmos_models.core__fact_transfers"], "source.cosmos_models.bronze_streamline.blocks": [], "source.cosmos_models.bronze_streamline.tx_search": [], "source.cosmos_models.bronze_streamline.validators": [], "source.cosmos_models.osmo.asset_metadata": []}, "child_map": {"model.cosmos_models.bronze__tx_search": ["model.cosmos_models.silver__transactions"], "model.cosmos_models.bronze__blocks": ["model.cosmos_models.silver__blocks"], "model.cosmos_models.silver__governance_proposal_deposits": ["model.cosmos_models.core__fact_governance_proposal_deposits", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9", "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83", "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362", "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e", "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5", "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2", "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83", "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182", "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547", "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f", "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848"], "model.cosmos_models.silver__transactions": ["model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.silver__msgs", "model.cosmos_models.silver__transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5", "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d", "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d", "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0", "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5", "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27", "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61", "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339", "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d", "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885", "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0"], "model.cosmos_models.silver__transfers": ["model.cosmos_models.core__fact_transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a", "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b", "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c", "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c", "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec", "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d", "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe", "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f", "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2", "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af", "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a"], "model.cosmos_models.silver__governance_submit_proposal": ["model.cosmos_models.core__fact_governance_submit_proposal", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3", "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82", "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930", "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd", "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4", "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad", "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9", "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1"], "model.cosmos_models.silver__msg_attributes": ["model.cosmos_models.core__fact_msg_attributes", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.core__fact_transactions", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_proposal_deposits", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_submit_proposal", "model.cosmos_models.silver__governance_votes", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "model.cosmos_models.silver__transfers", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac", "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf", "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9", "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717", "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361", "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0", "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d"], "model.cosmos_models.silver__governance_votes": ["model.cosmos_models.core__dim_vote_options", "model.cosmos_models.core__fact_governance_votes", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0", "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a", "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5", "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548", "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87", "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37", "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd", "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14", "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da"], "model.cosmos_models.silver__validators": ["model.cosmos_models.core__fact_validators", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9", "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557", "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3", "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215", "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b", "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278", "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff", "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825", "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a", "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb", "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69", "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7", "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4", "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10", "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348", "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732", "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07"], "model.cosmos_models.silver__blocks": ["model.cosmos_models.core__fact_blocks", "model.cosmos_models.silver__transactions", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204", "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96", "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9", "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead", "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35", "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74", "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6", "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877", "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca", "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e"], "model.cosmos_models.silver__msgs": ["model.cosmos_models.core__fact_msgs", "model.cosmos_models.silver__msg_attributes", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172", "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11", "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2", "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12", "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994", "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79", "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf", "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565", "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e", "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2", "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f"], "model.cosmos_models.bronze_api__get_validator_metadata": ["model.cosmos_models.silver__validators"], "model.cosmos_models.core__fact_transactions": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081", "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529", "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7", "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae", "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3"], "model.cosmos_models.core__dim_tokens": ["model.cosmos_models.core__dim_labels", "model.cosmos_models.core__fact_governance_proposal_deposits", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd"], "model.cosmos_models.core__fact_msgs": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2"], "model.cosmos_models.core__fact_blocks": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2"], "model.cosmos_models.core__fact_msg_attributes": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc"], "model.cosmos_models.core__fact_governance_proposal_deposits": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e"], "model.cosmos_models.core__dim_vote_options": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732"], "model.cosmos_models.core__fact_transfers": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91"], "model.cosmos_models.core__fact_governance_votes": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41"], "model.cosmos_models.core__fact_validators": ["model.cosmos_models.core__dim_labels", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e"], "model.cosmos_models.core__fact_governance_submit_proposal": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b"], "model.cosmos_models.core__dim_labels": ["test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55", "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474"], "model.cosmos_models.streamline__complete_transactions": ["model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_realtime"], "model.cosmos_models.streamline__validators_realtime": [], "model.cosmos_models.streamline__transactions_history": [], "model.cosmos_models.streamline__transactions_realtime": [], "model.cosmos_models.streamline__validators_history": [], "model.cosmos_models.streamline__complete_blocks": ["model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_realtime"], "model.cosmos_models.streamline__complete_validators": ["model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_realtime"], "model.cosmos_models.streamline__blocks_history": [], "model.cosmos_models.streamline__blocks_realtime": [], "model.cosmos_models.streamline__blocks": ["model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_history", "model.cosmos_models.streamline__blocks_realtime", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_history", "model.cosmos_models.streamline__transactions_realtime", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_history", "model.cosmos_models.streamline__validators_realtime"], "operation.cosmos_models.cosmos_models-on-run-start-0": [], "operation.cosmos_models.cosmos_models-on-run-start-1": [], "operation.cosmos_models.cosmos_models-on-run-end-0": [], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_ID.73b2e37ccf": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_ID__NUMBER__FLOAT.f13be7abb1": [], "test.cosmos_models.not_null_silver__msg_attributes_BLOCK_TIMESTAMP.ef8fb181e9": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msg_attributes_BLOCK_TIMESTAMP__day__1.e267a0033b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.683e76fd93": [], "test.cosmos_models.not_null_silver__msg_attributes_TX_ID.34f30240c0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_TX_ID__STRING__VARCHAR.f3a5b084a1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_GROUP__NUMBER__FLOAT.3ff8ce7ee1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_SUB_GROUP__NUMBER__FLOAT.ffdfeb6ce8": [], "test.cosmos_models.not_null_silver__msg_attributes_MSG_INDEX.38b80c3717": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_INDEX__NUMBER__FLOAT.970dc74b0d": [], "test.cosmos_models.not_null_silver__msg_attributes_MSG_TYPE.6fb2c6c361": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG_TYPE__STRING__VARCHAR.20bcdff679": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes_MSG__OBJECT.bb40077e01": [], "test.cosmos_models.not_null_silver__msg_attributes__INSERTED_TIMESTAMP.a5c8d75d4d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msg_attributes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d6c427737f": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msg_attributes_UNIQUE_KEY.8d52bb5dac": [], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_ID.97979dad9a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_ID__NUMBER__FLOAT.6db9174fdb": [], "test.cosmos_models.not_null_silver__governance_votes_BLOCK_TIMESTAMP.0d2cf87ae5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.e3e66ade1c": [], "test.cosmos_models.not_null_silver__governance_votes_TX_ID.3dd2b22c87": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_ID__STRING__VARCHAR.88979ead94": [], "test.cosmos_models.not_null_silver__governance_votes_TX_SUCCEEDED.55bdc98f37": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_TX_SUCCEEDED__BOOLEAN.68dadbac6f": [], "test.cosmos_models.not_null_silver__governance_votes_VOTER.96fedc99dd": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTER__STRING__VARCHAR.c0c8cb9205": [], "test.cosmos_models.not_null_silver__governance_votes_PROPOSAL_ID.7bb694c548": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_PROPOSAL_ID__NUMBER__FLOAT.a3c49bd449": [], "test.cosmos_models.not_null_silver__governance_votes_VOTE_OPTION.233eb8ef14": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes_VOTE_OPTION__NUMBER__FLOAT.152c4ede3f": [], "test.cosmos_models.not_null_silver__governance_votes__INSERTED_TIMESTAMP.4b700ec0da": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_votes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.110523b439": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_votes_TX_ID__PROPOSAL_ID__VOTER__VOTE_OPTION.3a84121ef0": [], "test.cosmos_models.not_null_silver__validators_ADDRESS.044bdd0fb3": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ADDRESS__STRING__VARCHAR.639b5ecd2e": [], "test.cosmos_models.not_null_silver__validators_BLOCKCHAIN.8d62ff2215": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_BLOCKCHAIN__STRING__VARCHAR.5367cc76f5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_BLOCKCHAIN__cosmos.9d5a539e09": [], "test.cosmos_models.not_null_silver__validators_CREATOR.29e051ca7b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_CREATOR__STRING__VARCHAR.f793a7bf59": [], "test.cosmos_models.not_null_silver__validators_LABEL_TYPE.9ac3147d2a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_TYPE__STRING__VARCHAR.84e4acabd9": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_TYPE__operator.32484733b8": [], "test.cosmos_models.not_null_silver__validators_LABEL_SUBTYPE.64be738825": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL_SUBTYPE__STRING__VARCHAR.00e4e3f12b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_set_silver__validators_LABEL_SUBTYPE__validator.522d73b50b": [], "test.cosmos_models.not_null_silver__validators_LABEL.5e8c7267ff": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_LABEL__STRING__VARCHAR.f694d1a0e3": [], "test.cosmos_models.not_null_silver__validators_PROJECT_NAME.b8f893f8e7": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_PROJECT_NAME__STRING__VARCHAR.0767218579": [], "test.cosmos_models.not_null_silver__validators_ACCOUNT_ADDRESS.a562e60557": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_ACCOUNT_ADDRESS__STRING__VARCHAR.f2ca98ae7d": [], "test.cosmos_models.not_null_silver__validators_DELEGATOR_SHARES.89b722f278": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_DELEGATOR_SHARES__NUMBER__FLOAT.153a8d0cdb": [], "test.cosmos_models.not_null_silver__validators_SELF_DELEGATION.c1360bb732": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_SELF_DELEGATION__NUMBER__FLOAT.78b8931f55": [], "test.cosmos_models.not_null_silver__validators_NUM_DELEGATORS.9f635710bb": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_DELEGATORS__NUMBER__FLOAT.a25c669482": [], "test.cosmos_models.not_null_silver__validators_RATE.fea467fa10": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RATE__NUMBER__FLOAT.b620a8dc1d": [], "test.cosmos_models.not_null_silver__validators_RANK.2e8e4ef4a4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_RANK__NUMBER__FLOAT.40bed35bb0": [], "test.cosmos_models.not_null_silver__validators_NUM_GOVERNANCE_VOTES.ce0cbcab69": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_NUM_GOVERNANCE_VOTES__NUMBER__FLOAT.2b0a59b7f4": [], "test.cosmos_models.not_null_silver__validators_RAW_METADATA.fb6370f348": [], "test.cosmos_models.not_null_silver__validators_UNIQUE_KEY.cf923edd07": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__validators_UNIQUE_KEY__STRING__VARCHAR.0953163d95": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__validators_UNIQUE_KEY.1a5d96d3a9": [], "test.cosmos_models.not_null_silver__blocks_BLOCK_ID.2e78c008c9": [], "test.cosmos_models.not_null_silver__blocks_BLOCK_TIMESTAMP.b65a1fcead": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__blocks_BLOCK_TIMESTAMP__day__1.3844f6e7d3": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.2a22373751": [], "test.cosmos_models.not_null_silver__blocks_BLOCKCHAIN.c3e6e8be96": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_BLOCKCHAIN__STRING__VARCHAR.01a66b1dcd": [], "test.cosmos_models.not_null_silver__blocks_CHAIN_ID.a10569ee35": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_CHAIN_ID__STRING__VARCHAR.eba2c1ff94": [], "test.cosmos_models.not_null_silver__blocks_TX_COUNT.34525b51e6": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_TX_COUNT__NUMBER__FLOAT.9486c781f5": [], "test.cosmos_models.not_null_silver__blocks_PROPOSER_ADDRESS.00f683ae74": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_PROPOSER_ADDRESS__STRING__VARCHAR.271fde4209": [], "test.cosmos_models.not_null_silver__blocks_VALIDATOR_HASH.27e6c22877": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks_VALIDATOR_HASH__STRING__VARCHAR.985e07aa79": [], "test.cosmos_models.not_null_silver__blocks__INSERTED_TIMESTAMP.be3b3ed4ca": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__blocks__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.690191eca2": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__blocks__UNIQUE_KEY.eee2c4d204": [], "test.cosmos_models.sequence_gaps_silver__blocks_block_ID.ccd7e47b6e": [], "test.cosmos_models.not_null_silver__transactions_BLOCK_ID.ba1565770d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_ID__NUMBER__FLOAT.f4d0275a3e": [], "test.cosmos_models.not_null_silver__transactions_BLOCK_TIMESTAMP.3ffe21fe8d": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transactions_BLOCK_TIMESTAMP__day__1.cf074498fc": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.bc42693f6e": [], "test.cosmos_models.not_null_silver__transactions_TX_ID.5bc0e20339": [], "test.cosmos_models.not_null_silver__transactions_GAS_USED.1c943486c0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_USED__NUMBER__FLOAT.5308f986d3": [], "test.cosmos_models.not_null_silver__transactions_GAS_WANTED.440469f6c5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_GAS_WANTED__NUMBER__FLOAT.b15ebe8eff": [], "test.cosmos_models.not_null_silver__transactions_TX_SUCCEEDED.7fbadde885": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_SUCCEEDED__BOOLEAN.1f7ce5b336": [], "test.cosmos_models.not_null_silver__transactions_TX_CODE.080a71cc61": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_CODE__NUMBER__FLOAT.7a08ebe064": [], "test.cosmos_models.not_null_silver__transactions_MSGS.e30a3fea27": [], "test.cosmos_models.not_null_silver__transactions_TX_LOG.1ceefab63d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions_TX_LOG__STRING__VARCHAR.e0b00c2af2": [], "test.cosmos_models.not_null_silver__transactions__INSERTED_TIMESTAMP.3b2b0fb3b0": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transactions__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.82828385ba": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transactions_UNIQUE_KEY.5dc8780ec5": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_ID.1fc8e8d39e": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_ID__NUMBER__FLOAT.bbd1e1037c": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_BLOCK_TIMESTAMP.be9d64b7a5": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.d6e6a5ce54": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_ID.5813dde547": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_ID__STRING__VARCHAR.dc8a385cd0": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_TX_SUCCEEDED.5fc4fe7d5f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_TX_SUCCEEDED__BOOLEAN.4bdd584238": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_DEPOSITOR.5ce640cb83": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_DEPOSITOR__STRING__VARCHAR.db0ffc94e1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_proposal_deposits_DEPOSITOR__cosmos1_0_9a_z_38_38_.a11c0ef963": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_PROPOSAL_ID.7ff8bdf182": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_PROPOSAL_ID__NUMBER__FLOAT.5d96907650": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_AMOUNT.0396b06362": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_AMOUNT__NUMBER__FLOAT.9946136e6f": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits_CURRENCY.2b95ab2ae2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits_CURRENCY__STRING__VARCHAR.00e06593e6": [], "test.cosmos_models.not_null_silver__governance_proposal_deposits__INSERTED_TIMESTAMP.793e397848": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_proposal_deposits__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47268211d9": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_proposal_deposits_TX_ID.6018626d83": [], "test.cosmos_models.not_null_silver__transfers_BLOCK_ID.81767d6c3c": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_ID__NUMBER__FLOAT.e08ee6d46c": [], "test.cosmos_models.not_null_silver__transfers_BLOCK_TIMESTAMP.d599dc282c": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__transfers_BLOCK_TIMESTAMP__day__1.aef2ec1111": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.4ccf9184cd": [], "test.cosmos_models.not_null_silver__transfers_TX_ID.1be05d8ee2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_ID__STRING__VARCHAR.0f84a7c8bb": [], "test.cosmos_models.not_null_silver__transfers_TX_SUCCEEDED.e11534b2af": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TX_SUCCEEDED__BOOLEAN.c3ad0a0d7a": [], "test.cosmos_models.not_null_silver__transfers_TRANSFER_TYPE.280bc9914f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_TRANSFER_TYPE__STRING__VARCHAR.43a2c68273": [], "test.cosmos_models.not_null_silver__transfers_SENDER.0abbede6fe": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_SENDER__STRING__VARCHAR.4ae271899a": [], "test.cosmos_models.not_null_silver__transfers_AMOUNT.ba102cb51b": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_AMOUNT__NUMBER__FLOAT.d9692a78f1": [], "test.cosmos_models.not_null_silver__transfers_CURRENCY.4a8953d5ec": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_CURRENCY__STRING__VARCHAR.a650f3fc35": [], "test.cosmos_models.not_null_silver__transfers_RECEIVER.965c9f325d": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers_RECEIVER__STRING__VARCHAR.b93628338d": [], "test.cosmos_models.not_null_silver__transfers__INSERTED_TIMESTAMP.595c1c618a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__transfers__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9d03af31f1": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__transfers_UNIQUE_KEY.e53fee7f9a": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_ID.80df3f0930": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_ID__NUMBER__FLOAT.065c6b7366": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_BLOCK_TIMESTAMP.59a0f38558": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.f1054d98d9": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_ID.8dc772d3ad": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_ID__STRING__VARCHAR.7af3aa957c": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_TX_SUCCEEDED.3728678fd9": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_TX_SUCCEEDED__BOOLEAN.3492299737": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSER.51a248ebc4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSER__STRING__VARCHAR.29a95924a4": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_match_regex_silver__governance_submit_proposal_PROPOSER__cosmos1_0_9a_z_38_38_.2412561263": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_ID.b8f0c6f0fa": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_ID__NUMBER__FLOAT.ce7aea08c5": [], "test.cosmos_models.not_null_silver__governance_submit_proposal_PROPOSAL_TYPE.dbda3680fd": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal_PROPOSAL_TYPE__STRING__VARCHAR.ea3d5adceb": [], "test.cosmos_models.not_null_silver__governance_submit_proposal__INSERTED_TIMESTAMP.cfc79bcad1": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__governance_submit_proposal__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.76862a64f3": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__governance_submit_proposal_TX_ID.e7cadc9d82": [], "test.cosmos_models.not_null_silver__msgs_BLOCK_ID.1de1a37994": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_ID__NUMBER__FLOAT.84601b77c0": [], "test.cosmos_models.not_null_silver__msgs_BLOCK_TIMESTAMP.5896b5fc79": [], "test.cosmos_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__msgs_BLOCK_TIMESTAMP__day__1.7d26c028d2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_BLOCK_TIMESTAMP__TIMESTAMP_NTZ.dfd05a3d5b": [], "test.cosmos_models.not_null_silver__msgs_TX_ID.59a107fa1e": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_ID__STRING__VARCHAR.007224ef8b": [], "test.cosmos_models.not_null_silver__msgs_TX_SUCCEEDED.e7c82779e2": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_TX_SUCCEEDED__BOOLEAN.c832584172": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_GROUP__NUMBER__FLOAT.c2035fb2bc": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_SUB_GROUP__NUMBER__FLOAT.1036402d60": [], "test.cosmos_models.not_null_silver__msgs_MSG_INDEX.227765e0bf": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_INDEX__NUMBER__FLOAT.fd6bcc57f5": [], "test.cosmos_models.not_null_silver__msgs_MSG_TYPE.312b195565": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG_TYPE__STRING__VARCHAR.ca4da74e2a": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs_MSG__OBJECT__VARIENT.1b26b76866": [], "test.cosmos_models.not_null_silver__msgs__INSERTED_TIMESTAMP.f08429b22f": [], "test.cosmos_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__msgs__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a1e200cf11": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_silver__msgs_UNIQUE_KEY.c642349e12": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_ID.1758defefc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCK_TIMESTAMP.c36a4acd9b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_BLOCKCHAIN.d2d8c99e2b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_CHAIN_ID.d97c339232": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_TX_COUNT.cba858f6da": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_PROPOSER_ADDRESS.33eacc997a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_blocks_VALIDATOR_HASH.74e26a3ed2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_ID.37c1b7e860": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_BLOCK_TIMESTAMP.84e94e706b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_ID.f616a284b6": [], "test.cosmos_models.not_null_core__fact_transactions_TX_FROM.7ddc5dd2a3": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_SUCCEEDED.35dccdcf3e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_CODESPACE.31e919d605": [], "test.cosmos_models.not_null_core__fact_transactions_FEE.f477aa43d7": [], "test.cosmos_models.not_null_core__fact_transactions_FEE_DENOM.2f1e97f1ae": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_USED.330cc6bb7e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_GAS_WANTED.8717751539": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_CODE.8a8b1c8b5d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_TX_LOG.9983486fda": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_MSGS.aee52badd9": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transactions_UNIQUE_KEY.1ad5809081": [], "test.cosmos_models.dbt_utils_unique_combination_of_columns_core__fact_transactions_UNIQUE_KEY.20df9f1529": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ADDRESS.adf98dac75": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_BLOCKCHAIN.5d98f45895": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_CREATOR.8ee1250b60": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_TYPE.acd943c593": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL_SUBTYPE.5c4b83673d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_LABEL.63e745c91d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_PROJECT_NAME.2275550428": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_ALIAS.46f836a959": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_DECIMAL.9ed902b8c6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_RAW_METADATA.35e66014b2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_tokens_UNIQUE_KEY.2c98bfa4bd": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_ID.faa38255c9": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_BLOCK_TIMESTAMP.cb0d0e3790": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_ID.c4b71cafbe": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_TX_SUCCEEDED.8b88dec946": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_GROUP.32d74436d2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_INDEX.32d6a4e7cb": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG_TYPE.e48648d983": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_MSG.f1f3ebfcd4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msgs_UNIQUE_KEY.2b64b431c2": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_ID.f40109cc23": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_BLOCK_TIMESTAMP.21675bcd7b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_ID.ec6a5f21b6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_TX_SUCCEEDED.3dcbf62ad6": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTER.39617dd3e8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_PROPOSAL_ID.56012275fa": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_votes_VOTE_OPTION.da3bb68e41": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ADDRESS.28ea232145": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_BLOCKCHAIN.8c212981c8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_CREATOR.937fa2f10c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_TYPE.d259f1a775": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL_SUBTYPE.545516ad48": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_LABEL.58ea9d5501": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_PROJECT_NAME.580ffece96": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_ACCOUNT_ADDRESS.e248ba3f9e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_DELEGATOR_SHARES.24690650ef": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_SELF_DELEGATION.58cb1e4c28": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_DELEGATORS.23286a4f8a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RATE.dbf93b6f73": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RANK.8ccac4f170": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_NUM_GOVERNANCE_VOTES.779ba831cc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_RAW_METADATA.935f630216": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_validators_UNIQUE_KEY.f3f4e0c31e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_ADDRESS.1501e0ea66": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_BLOCKCHAIN.8557883709": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_CREATOR.d5181598d8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_TYPE.c9d9d14a55": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL_SUBTYPE.dc4b4a781a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_LABEL.457ab8a792": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_labels_PROJECT_NAME.a2110e9474": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_ID.94b5ee163d": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_BLOCK_TIMESTAMP.e35edaf2e4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_ID.0b098941f8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_TX_SUCCEEDED.9ba3206a5b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSER.a0c1201cf0": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_ID.5d9ec9cb22": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_submit_proposal_PROPOSAL_TYPE.abd0b6911e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_ID.8371e6022c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_BLOCK_TIMESTAMP.02bfe08bd4": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_ID.862c4cca9a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_TX_SUCCEEDED.107db99d3e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DEPOSITOR.13b4d77077": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_PROPOSAL_ID.7a2276491a": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_AMOUNT.651eccef0b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_CURRENCY.8c9324d670": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_governance_proposal_deposits_DECIMAL.ecfaead484": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_ID.7b9a016433": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_BLOCK_TIMESTAMP.11e5f5562c": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_ID.cab7fab11b": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_TX_SUCCEEDED.d0b118ebcb": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_GROUP.f1ed86ed4e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_INDEX.d0e91438b3": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_MSG_TYPE.b2b48e2e7f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_INDEX.c041ee26dd": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_KEY.978c26f41e": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_ATTRIBUTE_VALUE.f316cfca60": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_msg_attributes_UNIQUE_KEY.9aa8692ecc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_VOTE_OPTION.8c91571732": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__dim_vote_options_DESCRIPTION.76ae78c4f7": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_ID.2c6f7e05cc": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_BLOCK_TIMESTAMP.0f58d69ae8": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_ID.9cf9dd8a23": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TX_SUCCEEDED.bf6be5c382": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_TRANSFER_TYPE.ee95d8d48f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_SENDER.5acfdb6d48": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_AMOUNT.dfd5f028ff": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_CURRENCY.cea97ef73f": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_RECEIVER.442acc3f94": [], "test.cosmos_models.dbt_expectations_expect_column_to_exist_core__fact_transfers_UNIQUE_KEY.2a714a9c91": [], "source.cosmos_models.bronze_streamline.blocks": ["model.cosmos_models.bronze__blocks", "model.cosmos_models.bronze__blocks", "model.cosmos_models.streamline__complete_blocks", "model.cosmos_models.streamline__complete_blocks"], "source.cosmos_models.bronze_streamline.tx_search": ["model.cosmos_models.bronze__tx_search", "model.cosmos_models.bronze__tx_search", "model.cosmos_models.streamline__complete_transactions", "model.cosmos_models.streamline__complete_transactions"], "source.cosmos_models.bronze_streamline.validators": ["model.cosmos_models.streamline__complete_validators", "model.cosmos_models.streamline__complete_validators"], "source.cosmos_models.osmo.asset_metadata": ["model.cosmos_models.core__dim_tokens"]}} \ No newline at end of file diff --git a/models/descriptions/__overview__.md b/models/descriptions/__overview__.md new file mode 100644 index 0000000..55d7d79 --- /dev/null +++ b/models/descriptions/__overview__.md @@ -0,0 +1,77 @@ +{% docs __overview__ %} + +# Welcome to the Flipside Crypto Cosmos Models Documentation + +## **What does this documentation cover?** +The documentation included here details the design of the Cosmos + tables and views available via [Flipside Crypto.](https://flipsidecrypto.xyz/) For more information on how these models are built, please see [the github repository.](https://github.com/flipsideCrypto/cosmos-models/) + +## **How do I use these docs?** +The easiest way to navigate this documentation is to use the Quick Links below. These links will take you to the documentation for each table, which contains a description, a list of the columns, and other helpful information. + +If you are experienced with dbt docs, feel free to use the sidebar to navigate the documentation, as well as explore the relationships between tables and the logic building them. + +There is more information on how to use dbt docs in the last section of this document. + +## **Quick Links to Table Documentation** + +**Click on the links below to jump to the documentation for each schema.** + +### Core Tables (`Cosmos`.`CORE`.``) + +**Dimension Tables:** +- [dim_labels](#!/model/model.cosmos_models.core__dim_labels) +- [dim_tokens](#!/model/model.cosmos_models.core__dim_tokens) + +**Fact Tables:** +- [fact_blocks](#!/model/model.cosmos.core__fact_blocks) +- [fact_governance_proposal_deposits](#!/model/model.cosmos.core__fact_governance_proposal_deposits) +- [fact_governance_submit_proposal](#!/model/model.cosmos.core__fact_governance_submit_proposal) +- [fact_governance_votes](#!/model/model.cosmos.core__fact_governance_votes) +- [fact_msg_attributes](#!/model/model.cosmos.core__fact_msg_attributes) +- [fact_msgs](#!/model/model.cosmos.core__fact_msgs) +- [fact_transactions](#!/model/model.cosmos.core__fact_transactions) +- [fact_transfers](#!/model/model.cosmos.core__fact_transfers) +- [fact_validators](#!/model/model.cosmos.core__fact_validators) + + +## **Data Model Overview** + +The Cosmos models are built a few different ways, but the core fact tables are built using three layers of sql models: **bronze, silver, and gold (or core).** + +- Bronze: Data is loaded in from the source as a view +- Silver: All necessary parsing, filtering, de-duping, and other transformations are done here +- Gold (or core): Final views and tables that are available publicly + +The dimension tables are sourced from a variety of on-chain and off-chain sources. + +Convenience views (denoted ez_) are a combination of different fact and dimension tables. These views are built to make it easier to query the data. + +## **Using dbt docs** +### Navigation + +You can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project. + +### Database Tab + +This 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. + +### Graph Exploration + +You can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models. + +On 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. + +Once 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). + +Note that you can also right-click on models to interactively filter and explore the graph. + + +### **More information** +- [Flipside](https://flipsidecrypto.xyz/) +- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover) +- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials) +- [Github](https://github.com/FlipsideCrypto/cosmos-models) +- [What is dbt?](https://docs.getdbt.com/docs/introduction) + +{% enddocs %} \ No newline at end of file