Skip to content

Commit

Permalink
fix: remove "intraday_" for propery_id
Browse files Browse the repository at this point in the history
  • Loading branch information
FloDevelops committed Jun 4, 2024
1 parent 8d279f0 commit 8a2120c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/base_select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 8a2120c

Please sign in to comment.