sl 1.0 deprecations
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_test_scheduled / run_dbt_jobs (push) Has been cancelled
dbt_run_incremental_non_core / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled / notify-failure (push) Has been cancelled
dbt_run_incremental_non_core / notify-failure (push) Has been cancelled
dbt_run_observability_monthly / run_dbt_jobs (push) Has been cancelled
dbt_run_observability_monthly / notify-failure (push) Has been cancelled
dbt_run_udf_blockchain / run_dbt_jobs (push) Has been cancelled
dbt_run_daily / run_dbt_jobs (push) Has been cancelled
dbt_run_dev_refresh / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_balances / run_dbt_jobs (push) Has been cancelled
dbt_run_incremental_core / run_dbt_jobs (push) Has been cancelled
dbt_run_observability / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_transactions_realtime / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_blocks_txcount_realtime / run_dbt_jobs (push) Has been cancelled
dbt_run_udf_blockchain / notify-failure (push) Has been cancelled
dbt_run_daily / notify-failure (push) Has been cancelled
dbt_run_streamline_balances / notify-failure (push) Has been cancelled
dbt_run_incremental_core / notify-failure (push) Has been cancelled
dbt_run_observability / notify-failure (push) Has been cancelled
dbt_run_streamline_transactions_realtime / notify-failure (push) Has been cancelled
dbt_run_streamline_blocks_txcount_realtime / notify-failure (push) Has been cancelled

This commit is contained in:
Eric Laurello 2025-09-04 10:37:16 -04:00
parent 8d60d2c572
commit 6efbe6cf0d
15 changed files with 78 additions and 63 deletions

View File

@ -1,5 +1,6 @@
{{ config (
materialized = 'view'
materialized = 'view',
enabled = false
) }}
SELECT

View File

@ -1,5 +1,6 @@
{{ config (
materialized = 'view'
materialized = 'view',
enabled = false
) }}
SELECT

View File

@ -5,7 +5,7 @@
tags = ['daily']
) }}
WITH base AS (
WITH {# base AS (
SELECT
base AS address,
@ -24,8 +24,9 @@ WITH base AS (
3,
4
),
#}
combo AS (
SELECT
{# SELECT
address,
label,
project_name,
@ -41,6 +42,7 @@ combo AS (
FROM
base
UNION ALL
#}
SELECT
COALESCE(
VALUE :denom :: STRING,

View File

@ -7,7 +7,7 @@
tags = ['noncore']
) }}
-- depends_on: {{ ref('bronze__streamline_pool_balances') }}
WITH base AS (
WITH {# base AS (
SELECT
A.block_id,
@ -24,6 +24,7 @@ WHERE
0 = 1
{% endif %}
),
#}
sl2 AS (
SELECT
VALUE :metadata :request :headers :"x-cosmos-block-height" :: INT AS block_id,
@ -69,7 +70,7 @@ combo AS (
A.pools
) b {# WHERE
value_raw :BLOCK_NUMBER IS NULL #}
UNION ALL
{# UNION ALL
SELECT
block_id,
b.value,
@ -78,7 +79,7 @@ combo AS (
base A
JOIN LATERAL FLATTEN(
A.pools
) b
) b #}
)
SELECT
A.block_id,

View File

@ -22,15 +22,15 @@ sources:
schema: |
{{ "OSMOSIS_DEV" if var("STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES", False) else "OSMOSIS" }}
tables:
- name: validator_metadata_api
- name: asset_metadata_api
- name: balances_api
- name: pool_balances_api
- name: blocks
- name: transactions
- name: txcount
- name: tx_search
- name: pool_balances
# - name: validator_metadata_api
# - name: asset_metadata_api
# - name: balances_api
# - name: pool_balances_api
# - name: blocks
# - name: transactions
# - name: txcount
# - name: tx_search
# - name: pool_balances
- name: balances
- name: blocks_v2
- name: transactions_v2

View File

@ -13,7 +13,7 @@ SELECT
inserted_timestamp
FROM
{{ ref('bronze__streamline_FR_balances_v2') }}
UNION ALL
{# UNION ALL
SELECT
VALUE,
_partition_by_block_id AS partition_key,
@ -23,3 +23,4 @@ SELECT
_INSERTED_TIMESTAMP
FROM
{{ ref('bronze__streamline_FR_balances_v1') }}
#}

View File

@ -12,7 +12,7 @@ SELECT
inserted_timestamp
FROM
{{ ref('bronze__streamline_FR_blocks_v2') }}
UNION ALL
{# UNION ALL
SELECT
VALUE,
_partition_by_block_id AS partition_key,
@ -22,3 +22,4 @@ SELECT
_INSERTED_TIMESTAMP
FROM
{{ ref('bronze__streamline_FR_blocks_v1') }}
#}

View File

@ -1,5 +1,6 @@
{{ config (
materialized = 'view'
materialized = 'view',
enabled = false
) }}
{{ streamline_external_table_FR_query(
"blocks",

View File

@ -12,7 +12,7 @@ SELECT
inserted_timestamp
FROM
{{ ref('bronze__streamline_FR_pool_balances_v2') }}
UNION ALL
{# UNION ALL
SELECT
VALUE,
_partition_by_block_id AS partition_key,
@ -22,3 +22,4 @@ SELECT
_INSERTED_TIMESTAMP
FROM
{{ ref('bronze__streamline_FR_pool_balances_v1') }}
#}

View File

@ -1,6 +1,7 @@
{{ config (
materialized = 'view',
tags = ['core']
tags = ['core'],
enabled = false
) }}
{{ streamline_external_table_FR_query(
model = 'pool_balances',

View File

@ -12,7 +12,7 @@ SELECT
inserted_timestamp
FROM
{{ ref('bronze__streamline_FR_transactions_v2') }}
UNION ALL
{# UNION ALL
SELECT
VALUE,
_partition_by_block_id AS partition_key,
@ -22,3 +22,4 @@ SELECT
_INSERTED_TIMESTAMP
FROM
{{ ref('bronze__streamline_FR_transactions_v1') }}
#}

View File

@ -1,6 +1,7 @@
{{ config (
materialized = 'view',
tags = ['core']
tags = ['core'],
enabled = false
) }}
{% set model = this.identifier.split("_") [-1] %}

View File

@ -1,5 +1,6 @@
{{ config (
materialized = 'view'
materialized = 'view',
enabled = false
) }}
{{ streamline_external_table_FR_query(
"transactions",

View File

@ -12,7 +12,7 @@ SELECT
inserted_timestamp
FROM
{{ ref('bronze__streamline_FR_tx_counts_v2') }}
UNION ALL
{# UNION ALL
SELECT
VALUE,
_partition_by_block_id AS partition_key,
@ -22,3 +22,4 @@ SELECT
_INSERTED_TIMESTAMP
FROM
{{ ref('bronze__streamline_FR_tx_counts_v1') }}
#}

View File

@ -1,5 +1,6 @@
{{ config (
materialized = 'view'
materialized = 'view',
enabled = false
) }}
{{ streamline_external_table_FR_query(
"txcount",