diff --git a/models/gold/defi/core__ez_bridge_transactions.yml b/models/gold/defi/core__ez_bridge_transactions.yml index f84c57b..82d2353 100644 --- a/models/gold/defi/core__ez_bridge_transactions.yml +++ b/models/gold/defi/core__ez_bridge_transactions.yml @@ -4,98 +4,34 @@ models: - name: core__ez_bridge_transactions description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.DEFI.EZ_BRIDGE_TRANSACTIONS**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - tx_id columns: - name: TX_ID description: "{{ doc('tx_id') }}" - tests: - - not_null - name: BLOCK_TIMESTAMP description: "{{ doc('block_timestamp') }}" - tests: - - not_null - - dbt_expectations.expect_row_values_to_have_recent_data: - datepart: day - interval: 3 - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: BLOCK_HEIGHT description: "{{ doc('block_height') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - FLOAT - name: BRIDGE_CONTRACT description: "{{ doc('bridge_contract') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TOKEN_CONTRACT description: "{{ doc('token_contract') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: AMOUNT description: "{{ doc('amount') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - DOUBLE - - FLOAT - name: FLOW_WALLET_ADDRESS description: "{{ doc('flow_wallet_address') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: BLOCKCHAIN description: "{{ doc('blockchain') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: DIRECTION description: "{{ doc('direction') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: BRIDGE description: "{{ doc('bridge') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR diff --git a/models/gold/gov/core__dim_validator_labels.yml b/models/gold/gov/core__dim_validator_labels.yml index cf73540..f675630 100644 --- a/models/gold/gov/core__dim_validator_labels.yml +++ b/models/gold/gov/core__dim_validator_labels.yml @@ -5,36 +5,12 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.GOV.DIM_VALIDATOR_LABELS**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - node_id - columns: - name: NODE_ID description: "{{ doc('node_id') }}" - tests: - - not_null - - unique - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: VALIDATOR_TYPE description: "{{ doc('validator_type') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PROJECT_NAME description: "{{ doc('project_name') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR diff --git a/models/gold/gov/core__ez_staking_actions.yml b/models/gold/gov/core__ez_staking_actions.yml index d242766..db82227 100644 --- a/models/gold/gov/core__ez_staking_actions.yml +++ b/models/gold/gov/core__ez_staking_actions.yml @@ -5,79 +5,27 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.GOV.EZ_STAKING_ACTIONS**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - tx_id - - event_index - columns: - name: tx_id description: "{{ doc('tx_id') }}" - tests: - - not_null - name: block_timestamp description: "{{ doc('block_timestamp') }}" - tests: - - not_null - - dbt_expectations.expect_row_values_to_have_recent_data: - datepart: day - interval: 1 - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: block_height description: "{{ doc('block_height') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - FLOAT - name: tx_succeeded description: "{{ doc('tx_succeeded') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - BOOLEAN - name: delegator description: "{{ doc('delegator') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - VARCHAR - - STRING - name: action description: "{{ doc('action') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - VARCHAR - - STRING - name: amount description: "{{ doc('amount') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - FLOAT - - DOUBLE - name: node_id - description: "{{ doc('node_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - VARCHAR - - STRING + description: "{{ doc('node_id') }}" \ No newline at end of file diff --git a/models/gold/nft/core__dim_allday_metadata.yml b/models/gold/nft/core__dim_allday_metadata.yml index c6bf9e4..e37a147 100644 --- a/models/gold/nft/core__dim_allday_metadata.yml +++ b/models/gold/nft/core__dim_allday_metadata.yml @@ -5,158 +5,54 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.NFT.DIM_ALLDAY_METADATA**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - nft_id - columns: - name: NFT_ID description: "{{ doc('nft_id') }}" - tests: - - not_null - - unique - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NFT_COLLECTION description: "{{ doc('nft_collection') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NFLALLDAY_ID description: "{{ doc('nflallday_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SERIAL_NUMBER description: "{{ doc('serial_number') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - name: TOTAL_CIRCULATION description: "{{ doc('total_circulation') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - name: MOMENT_DESCRIPTION description: "{{ doc('moment_description') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PLAYER description: "{{ doc('player') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TEAM description: "{{ doc('team') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SEASON description: "{{ doc('season') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: WEEK description: "{{ doc('week') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: CLASSIFICATION description: "{{ doc('classification') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PLAY_TYPE description: "{{ doc('play_type') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: MOMENT_DATE description: "{{ doc('moment_date') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: SERIES description: "{{ doc('series') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SET_NAME description: "{{ doc('set_name') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: VIDEO_URLS description: "{{ doc('video_urls') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - ARRAY - name: MOMENT_STATS_FULL description: "{{ doc('moment_stats_full') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - OBJECT - - VARIANT diff --git a/models/gold/nft/core__dim_moment_metadata.yml b/models/gold/nft/core__dim_moment_metadata.yml index 3f84232..dfb5214 100644 --- a/models/gold/nft/core__dim_moment_metadata.yml +++ b/models/gold/nft/core__dim_moment_metadata.yml @@ -5,59 +5,39 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.NFT.DIM_MOMENT_METADATA**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - nft_collection - - nft_id - columns: - name: nft_collection description: "{{ doc('nft_collection') }}" - tests: - - not_null + - name: nft_id description: "{{ doc('nft_id') }}" - tests: - - not_null + - name: serial_number description: "{{ doc('serial_number') }}" - tests: - - not_null + - name: max_mint_size description: "{{ doc('max_mint_size') }}" - tests: - - not_null + - name: play_id description: "{{ doc('play_id') }}" - tests: - - not_null + - name: series_id description: "{{ doc('series_id') }}" - tests: - - not_null + - name: series_name description: "{{ doc('series_name') }}" - tests: - - not_null + - name: set_id description: "{{ doc('set_id') }}" - tests: - - not_null + - name: set_name description: "{{ doc('set_name') }}" - tests: - - not_null + - name: edition_id description: "{{ doc('edition_id') }}" - tests: - - not_null + - name: tier description: "{{ doc('tier') }}" - tests: - - not_null + - name: metadata description: "{{ doc('metadata') }}" - tests: - - not_null: - where: not (nft_collection = 'A.e4cf4bdc1751c65d.AllDay' and series_name = 'Historical 2') and nft_collection != 'A.87ca73a41bb50ad5.Golazos' diff --git a/models/gold/nft/core__dim_topshot_metadata.yml b/models/gold/nft/core__dim_topshot_metadata.yml index dac8540..ad785b1 100644 --- a/models/gold/nft/core__dim_topshot_metadata.yml +++ b/models/gold/nft/core__dim_topshot_metadata.yml @@ -5,164 +5,57 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.NFT.DIM_TOPSHOT_METADATA**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - nft_id - columns: - name: NFT_ID description: "{{ doc('nft_id') }}" - tests: - - not_null - - unique - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NFT_COLLECTION description: "{{ doc('nft_collection') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NBATOPSHOT_ID description: "{{ doc('nbatopshot_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SERIAL_NUMBER description: "{{ doc('serial_number') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - name: TOTAL_CIRCULATION description: "{{ doc('total_circulation') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - name: MOMENT_DESCRIPTION description: "{{ doc('moment_description') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PLAYER description: "{{ doc('player') }}" - tests: - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TEAM description: "{{ doc('team') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SEASON description: "{{ doc('season') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PLAY_CATEGORY description: "{{ doc('play_category') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PLAY_TYPE description: "{{ doc('play_type') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: MOMENT_DATE description: "{{ doc('moment_date') }}" - tests: - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: SET_NAME description: "{{ doc('set_name') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SET_SERIES_NUMBER description: "{{ doc('set_series_number') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - name: VIDEO_URLS description: "{{ doc('video_urls') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - ARRAY - name: MOMENT_STATS_FULL description: "{{ doc('moment_stats_full') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - OBJECT - - VARIANT - name: PLAYER_STATS_GAME description: "{{ doc('player_stats_game') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - OBJECT - - VARIANT - name: PLAYER_STATS_SEASON_TO_DATE description: "{{ doc('player_stats_season_to_date') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - OBJECT - - VARIANT diff --git a/models/gold/nft/core__ez_nft_sales.yml b/models/gold/nft/core__ez_nft_sales.yml index a151ae6..dd6c295 100644 --- a/models/gold/nft/core__ez_nft_sales.yml +++ b/models/gold/nft/core__ez_nft_sales.yml @@ -5,134 +5,42 @@ models: description: |- Deprecating soon: This is a notice that we're replacing this table with **FLOW.NFT.EZ_NFT_SALES**. Please migrate queries to the new table by **9/14/23**. There will be no column changes or any other changes of any kind. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - tx_id - - seller - - buyer - - nft_collection - - nft_id - columns: - name: TX_ID description: "{{ doc('tx_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: BLOCK_HEIGHT description: "{{ doc('block_height') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - FLOAT - name: BLOCK_TIMESTAMP description: "{{ doc('block_timestamp') }}" - tests: - - not_null - - dbt_expectations.expect_row_values_to_have_recent_data: - datepart: day - interval: 1 - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: MARKETPLACE description: "{{ doc('marketplace') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NFT_COLLECTION description: "{{ doc('nft_collection') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: NFT_ID description: "{{ doc('nft_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - - NUMBER - name: BUYER description: "{{ doc('buyer') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SELLER description: "{{ doc('seller') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PRICE description: "{{ doc('price') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - FLOAT - - DOUBLE - name: CURRENCY description: "{{ doc('currency') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TX_SUCCEEDED description: "{{ doc('tx_succeeded') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - BOOLEAN - name: TOKENFLOW description: "{{ doc('tokenflow') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - ARRAY - - OBJECT - - VARIANT - name: COUNTERPARTIES description: "{{ doc('counterparties') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - ARRAY - - OBJECT - - VARIANT diff --git a/models/gold/price/core__fact_hourly_prices.yml b/models/gold/price/core__fact_hourly_prices.yml index c7468f2..54ab5c1 100644 --- a/models/gold/price/core__fact_hourly_prices.yml +++ b/models/gold/price/core__fact_hourly_prices.yml @@ -9,70 +9,24 @@ models: columns: - name: RECORDED_HOUR description: "{{ doc('recorded_hour') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: ID description: "{{ doc('asset_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TOKEN description: "{{ doc('token') }}" - tests: - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: OPEN description: "{{ doc('open') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - FLOAT - - DOUBLE - name: HIGH description: "{{ doc('high') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - FLOAT - - DOUBLE - name: LOW description: "{{ doc('low') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - FLOAT - - DOUBLE - name: CLOSE description: "{{ doc('asset_id') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - FLOAT - - DOUBLE - name: PROVIDER description: "{{ doc('provider') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR \ No newline at end of file diff --git a/models/gold/price/core__fact_prices.yml b/models/gold/price/core__fact_prices.yml index 77e98dc..17f793f 100644 --- a/models/gold/price/core__fact_prices.yml +++ b/models/gold/price/core__fact_prices.yml @@ -9,52 +9,18 @@ models: columns: - name: TIMESTAMP description: "{{ doc('timestamp') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - TIMESTAMP_NTZ - name: TOKEN description: "{{ doc('token') }}" - tests: - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: SYMBOL description: "{{ doc('symbol') }}" - tests: - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: TOKEN_CONTRACT description: "{{ doc('token_contract') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR - name: PRICE_USD description: "{{ doc('price_usd') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - NUMBER - - DOUBLE - - FLOAT - name: SOURCE description: "{{ doc('source') }}" - tests: - - not_null - - dbt_expectations.expect_column_values_to_be_in_type_list: - column_type_list: - - STRING - - VARCHAR