From 22b60e20f003b1e4a9b8d92e708886f53db2650c Mon Sep 17 00:00:00 2001 From: Son Do Date: Fri, 15 Nov 2024 12:19:55 -0500 Subject: [PATCH] Added Fix for bam datahub --- models/data_hubs/fact_daily_bam_datahub.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/data_hubs/fact_daily_bam_datahub.sql b/models/data_hubs/fact_daily_bam_datahub.sql index 6b04a6c5..c3b10a04 100644 --- a/models/data_hubs/fact_daily_bam_datahub.sql +++ b/models/data_hubs/fact_daily_bam_datahub.sql @@ -99,11 +99,11 @@ select coalesce( cast(app_symbol as string), cast(bam.app as string), - cast(category_symbol as string), + cast(lower(replace(bam.category, ' ', '_')) as string), '' ), '-', - coalesce(cast(chain_symbol as string), cast(chain as string)) + coalesce(chain_symbol, chain, 'all') ) as excel_symbol from bam_data as bam left join app_coingecko on bam.app = app_coingecko.app