From 24b80c942b987c504ed490aaea979f1aa891f526 Mon Sep 17 00:00:00 2001 From: Son Do Date: Fri, 26 Apr 2024 11:37:27 -0400 Subject: [PATCH] Udpate Visibility --- models/dimensions/apps/dim_apps_post_sigma.sql | 1 + models/dimensions/apps/dim_apps_silver.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/dimensions/apps/dim_apps_post_sigma.sql b/models/dimensions/apps/dim_apps_post_sigma.sql index 559e35ff..11b8a49d 100644 --- a/models/dimensions/apps/dim_apps_post_sigma.sql +++ b/models/dimensions/apps/dim_apps_post_sigma.sql @@ -10,6 +10,7 @@ select parent_app as parent_namespace, visibility, symbol, + update_visibility as updated_visibility, update_artemis_id as updated_artemis_id, update_category as updated_category, update_sub_category as updated_sub_category, diff --git a/models/dimensions/apps/dim_apps_silver.sql b/models/dimensions/apps/dim_apps_silver.sql index dc6734b3..0e8775b0 100644 --- a/models/dimensions/apps/dim_apps_silver.sql +++ b/models/dimensions/apps/dim_apps_silver.sql @@ -12,7 +12,7 @@ with sigma.ecosystem_id, sigma.defillama_protocol_id, coalesce(updated_parent_namespace, sigma.parent_namespace) as parent_app, - sigma.visibility, + coalesce(updated_visibility , sigma.visibility) as visibility, coalesce(sigma.update_symbol, sigma.symbol) as symbol from {{ ref("dim_apps_post_sigma") }} as sigma where sigma.namespace is not null