Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm tables from app datathub #218

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions models/data_hubs/fact_daily_app_datahub.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,6 @@ with
{{
dbt_utils.union_relations(
relations=[
ref("fact_stargate_bridge_volume_gold"),
ref("fact_sushiswap_arbitrum_gold"),
ref("fact_sushiswap_avalanche_gold"),
ref("fact_sushiswap_bsc_gold"),
ref("fact_sushiswap_ethereum_gold"),
ref("fact_sushiswap_gnosis_gold"),
ref("fact_uniswap_arbitrum_gold"),
ref("fact_uniswap_avalanche_gold"),
ref("fact_uniswap_base_gold"),
ref("fact_uniswap_bsc_gold"),
ref("fact_uniswap_ethereum_gold"),
ref("fact_uniswap_optimism_gold"),
ref("fact_uniswap_polygon_gold"),
ref("fact_pancakeswap_arbitrum_gold"),
ref("fact_pancakeswap_base_gold"),
ref("fact_pancakeswap_bsc_gold"),
ref("fact_pancakeswap_ethereum_gold"),
ref("fact_apex_trading_volume_gold"),
ref("fact_aevo_trading_volume_gold"),
ref("fact_quickswap_polygon_gold"),
ref("fact_fraxswap_ethereum_gold"),
ref("fact_trader_joe_arbitrum_gold"),
ref("fact_trader_joe_avalanche_gold"),
ref(
"fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_arbitrum_gold"
),
ref(
"fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_avalanche_gold"
),
ref(
"fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_ethereum_gold"
),
ref(
"fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_optimism_gold"
),
ref(
"fact_curve_tvl_trading_vol_trading_fees_trading_revenue_unique_traders_polygon_gold"
),
ref("fact_wormhole_bridge_volume_gold"),
ref("fact_wormhole_bridge_daa_gold"),
ref("fact_synapse_bridge_volume_gold"),
Expand All @@ -60,7 +22,6 @@ with
ref("fact_avalanche_bridge_bridge_daa_gold"),
ref("fact_arbitrum_one_bridge_bridge_volume_gold"),
ref("fact_arbitrum_one_bridge_bridge_daa_gold"),
ref("fact_bluefin_trading_volume_gold"),
],
)
}}
Expand All @@ -74,11 +35,7 @@ with
app,
chain,
category,
max(trading_volume) as trading_volume,
max(unique_traders) as unique_traders,
max(fees) as fees,
max(bridge_volume) as bridge_volume,
max(tvl) as tvl,
max(inflow) as inflow,
max(outflow) as outflow,
max(bridge_daa) as bridge_daa
Expand All @@ -98,14 +55,10 @@ select
app_data_tagged.app as app,
app_data_tagged.chain as chain,
app_data_tagged.category as category,
app_data_tagged.trading_volume as trading_volume,
app_data_tagged.unique_traders as unique_traders,
app_data_tagged.fees as fees,
app_data_tagged.bridge_volume as bridge_volume,
app_data_tagged.inflow as inflow,
app_data_tagged.outflow as outflow,
app_data_tagged.bridge_daa as bridge_daa,
app_data_tagged.tvl as tvl,
coingecko.coingecko_id as coingecko_id,
coalesce(
app_data_tagged.defillama_protocol_id, defillama_protocol.defillama_protocol_id
Expand Down
Loading