From 8a2120cc2bbf0a02236a1d0bca09e25afcada66b Mon Sep 17 00:00:00 2001 From: Florian Chabert <65234487+FloDevelops@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:37:07 +0200 Subject: [PATCH] fix: remove "intraday_" for propery_id --- macros/base_select.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/base_select.sql b/macros/base_select.sql index 881aca8d..8919388f 100644 --- a/macros/base_select.sql +++ b/macros/base_select.sql @@ -35,7 +35,7 @@ , ecommerce.unique_items , ecommerce.transaction_id , items - , {%- if var('combined_dataset', false) != false %} cast(left(regexp_replace(_table_suffix, r'^\d{8}', ''), 100) as int64) + , {%- if var('combined_dataset', false) != false %} cast(left(regexp_replace(_table_suffix, r'^(intraday_)?\d{8}', ''), 100) as int64) {%- else %} {{ var('property_ids')[0] }} {%- endif %} as property_id {% endmacro %}