-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
294 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
integration_tests/models/source/default/snowplow_unified_browser_context_2_stg.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{# | ||
Copyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved. | ||
This program is licensed to you under the Snowplow Personal and Academic License Version 1.0, | ||
and you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0. | ||
You may obtain a copy of the Snowplow Personal and Academic License Version 1.0 at https://docs.snowplow.io/personal-and-academic-license-1.0/ | ||
#} | ||
|
||
Select | ||
|
||
event_id as root_id, | ||
collector_tstamp::timestamp as root_tstamp, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as viewport, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as document_size, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as resolution, | ||
case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as color_depth, | ||
case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as device_pixel_ratio, | ||
case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as cookies_enabled, | ||
case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as online, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as browser_language, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as document_language, | ||
case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as webdriver, | ||
case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as device_memory, | ||
case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as hardware_concurrency, | ||
case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as tab_id, | ||
'browser_context' as schema_name | ||
|
||
from {{ ref('snowplow_unified_events') }} |
Oops, something went wrong.