Skip to content

Commit

Permalink
Remove relation
Browse files Browse the repository at this point in the history
  • Loading branch information
agnessnowplow committed Jan 12, 2024
1 parent 6edfeb7 commit daa8e70
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion macros/field_extractions/get_app_error_event_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_app_errors', false),
col_prefix='unstruct_event_com_snowplowanalytics_snowplow_application_error_1',
fields=bq_app_error_event_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as app_error__message
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_browser_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_browser_context', false),
col_prefix='contexts_com_snowplowanalytics_snowplow_browser_context_1',
fields=bq_browser_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as browser__viewport
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_cmp_visible_event_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_consent', false),
col_prefix='unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1',
fields=bq_cmp_visible_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_float() }}) as cmp__elapsed_time
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_consent_event_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_consent', false),
col_prefix='unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1',
fields=bq_consent_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as consent__event_type
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_cwv_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_cwv', false),
col_prefix='unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1',
fields=bq_cwv_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as decimal) as cwv__lcp,
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_deep_link_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_deep_link_context', false),
col_prefix='contexts_com_snowplowanalytics_mobile_deep_link_1',
fields=bq_deep_link_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as deep_link__url
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_geo_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_geolocation_context', false),
col_prefix='contexts_com_snowplowanalytics_snowplow_geolocation_context_1',
fields=bq_geo_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_float() }}) as geo__latitude
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_iab_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_iab', false),
fields=bq_iab_fields,
col_prefix='contexts_com_iab_snowplow_spiders_and_robots_1',
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{%- else -%}
, cast(null as {{ type_string() }}) as iab__category
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_mobile_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_mobile_context', false),
col_prefix='contexts_com_snowplowanalytics_snowplow_mobile_context_1',
fields=bq_mobile_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as mobile__device_manufacturer
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_screen_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_screen_context', false),
col_prefix='contexts_com_snowplowanalytics_mobile_screen_1',
fields=bq_screen_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as screen__id
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_session_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=true,
col_prefix='contexts_com_snowplowanalytics_snowplow_client_session_1',
fields=bq_session_context_fields,
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as session__session_id
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_ua_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_ua', false),
fields=bq_ua_fields,
col_prefix='contexts_com_snowplowanalytics_snowplow_ua_parser_context_1',
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{%- else -%}
, cast(null as {{ type_string() }}) as ua__useragent_family
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_web_page_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=true,
fields=bq_web_page_fields,
col_prefix='contexts_com_snowplowanalytics_snowplow_web_page_1',
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{% else %}
, cast(null as {{ type_string() }}) as page_view__id
Expand Down
2 changes: 1 addition & 1 deletion macros/field_extractions/get_yauaa_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
enabled=var('snowplow__enable_yauaa', false),
fields=bq_yauaa_fields,
col_prefix='contexts_nl_basjes_yauaa_context_1',
relation=relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),else ref('snowplow_unified_events_stg'),
relation_alias=none) }}
{%- else -%}
, cast(null as {{ type_string() }}) as yauaa__device_class
Expand Down

0 comments on commit daa8e70

Please sign in to comment.